Small Txt prob - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Small Txt prob (
/showthread.php?tid=377301)
Small Txt prob -
Twinklies - 13.09.2012
What's the problem with this?
if(strcmp(cmdtext, "/tutorial", true) == 0)
{
if(text[0] == 'y')
{
SendClientMessage(playerid, COLOR_RED, "<!>Test passed");
}
if(text[0] == 'n')
{
SendClientMessage(playerid, COLOR_RED, "<!>You didnt pass");
}
return 1;
}
Errors:
error 017: undefined symbol "text"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Re: Small Txt prob - HuSs3n - 13.09.2012
the problem is that 'text' is not defined ,, that should be self explained
Re: Small Txt prob -
trapstar2020 - 13.09.2012
before gm int
new text[0][Max_Players];
onplayerspawn or sumthing add this
text[0][playerid] = 0;
0 = no and u can make
1 = yes
Re: Small Txt prob -
Twinklies - 14.09.2012
Tnx ^_^!