Variables Problem
#1

So I have a variable, a global variable to be precise, and I am planing on using this variable in multiple callbacks and so on. I first of all have one local variable in a dialog response callback, and I want to be able to store that local variable into my global variable, so I can use that variable everywhere in the script. Here is what I am having troubles with:
pawn Код:
new DivisionID[MAX_PLAYERS]; //this is global


if(dialogid == 10)
{
new Player;
Player = DivisionID;
}
As you can see, Player = DivisionID, it gives me a lot of array errors. Please help.
Reply
#2

pawn Код:
DivisionID [ playerid ] = Player;
Reply
#3

Thanks man.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)