14.04.2012, 22:09
Hello.. i am new to scripting here and i am asking some questions
I've read lots of tutorials here but i got some questions
I know that strcmp means string compare but at different tutorials i find "!" before the strcmp and sometimes the "!" is not there so does it make any difference?
Also what does that " == 0 )" thingy means? and what does the return do? i read @ samp wiki but i really couldn't get what does the return do.
Any help would be appreciated
Thanks
I've read lots of tutorials here but i got some questions
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
Also what does that " == 0 )" thingy means? and what does the return do? i read @ samp wiki but i really couldn't get what does the return do.
Any help would be appreciated

Thanks


