15.02.2011, 15:26
(
Последний раз редактировалось nejc001; 15.02.2011 в 16:30.
)
So hey, im back from like 2.5months no scripting... and i started to work on FS(before i was on gamemode scripting and i have an problem)
Im trying to make a variable that can be used in whole FS.
But if i create at begining of FS lets say: *new x;*
I cant use it then in: *public OnPlayerCommandText*
Its says: *error 017: undefined symbol "x"*
This didnt happen in gamemode script..
So like:
Im trying to make a variable that can be used in whole FS.
But if i create at begining of FS lets say: *new x;*
I cant use it then in: *public OnPlayerCommandText*
Its says: *error 017: undefined symbol "x"*
This didnt happen in gamemode script..
So like:
pawn Код:
new x;
//all other public....things..
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/eatdammcornflakes", cmdtext, true, 10) == 0)
{
x= 1;
return 1;
}
return 0;
}