Small Txt prob
#1

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
Reply
#2

the problem is that 'text' is not defined ,, that should be self explained
Reply
#3

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
Reply
#4

Tnx ^_^!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)