Quote:
Originally Posted by rangerxxll
When I create a global variable like this.
pawn Код:
new td = CreateTDboxForPlayer(playerid, "Help Box", COLOR_CYAN, "~w~1. Rules~n~2. Commands.");
My pawno crashes. Any idea as to why this is happening? Thanks.
|
Sorry to be answering so late, but here it is. What you are doing is just like doing:
pawn Код:
new rand = random(sizeof(var));
under global scope. This will crash pawno. So try doing it under a callback or function or whatever, after globally declaring the variable.