| 03-04-2003, 01:31 AM | #46 |
Are you sure? Because when I used it in the GUI as player number of triggering player and referred to it as 1 (for player 1) then it worked. |
| 03-04-2003, 01:49 AM | #47 |
Okay, I changed the code so that the variable is initialized with a value, that didn't work. I tried using player number + 1, that didn't work. I tried setting up a trigger that when I type -Var it will display all the variable arrays. They are ALL (null)s. There must be something wrong with the main code. I'll post what it is right now.... again. Code:
function Trig_Converting_Actions takes nothing returns nothing
local integer x = ( GetConvertedPlayerId(udg_TriggeringPlayer) + 1 )
local integer y = 0
set udg_Convert[GetConvertedPlayerId(udg_TriggeringPlayer)] = true
call DisplayTextToForce( GetPlayersAll(), udg_PasswordCon[x] )
loop
exitwhen x > 215
loop
exitwhen y > 79
if ( udg_Password[x] == udg_Converting[y] ) then
set udg_PasswordCon[x] = udg_Converting2[y]
call DisplayTextToForce( GetPlayersAll(), udg_PasswordCon[x] )
set y = 80 // line added by SID6.7
else // line added by SID6.7
set y = y + 1 // line added by SID6.7
endif // line added by SID6.7
endloop
set x = x + 12
set y = 0
endloop
set udg_Convert[GetConvertedPlayerId(udg_TriggeringPlayer)] = false
endfunction
//===========================================================================
function InitTrig_Converting takes nothing returns nothing
set gg_trg_Converting = CreateTrigger( )
call TriggerAddAction( gg_trg_Converting, function Trig_Converting_Actions )
endfunctionWhy is this so difficult? |
| 03-04-2003, 02:14 AM | #48 |
Thanks for your help, I redid the code, and changed the name of variables and it works. I have no idea what messed this up, but thanks alot guys. You steered me in the right direction and I can get on with my "confusing" life. Edit: You know that high you get when you figure something out you've been working on for a long time? I'm fricken stoned. |
