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


Messages In This Thread
Small Txt prob - by Twinklies - 13.09.2012, 18:01
Re: Small Txt prob - by HuSs3n - 13.09.2012, 18:46
Re: Small Txt prob - by trapstar2020 - 13.09.2012, 18:48
Re: Small Txt prob - by Twinklies - 14.09.2012, 17:29

Forum Jump:


Users browsing this thread: 1 Guest(s)