03.12.2010, 21:53
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:
As you can see, Player = DivisionID, it gives me a lot of array errors. Please help.
pawn Код:
new DivisionID[MAX_PLAYERS]; //this is global
if(dialogid == 10)
{
new Player;
Player = DivisionID;
}