17.05.2010, 15:36
If I want to add a command I always get: error 010: invalid function or declaration
What does that command mean?
Please help me
What does that command mean?
Please help me
if(strcmp(cmd, "/help", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GREEN,":: ACCOUNT :: /rules /stats /changepass /levelup /upgrade");
SendClientMessage(playerid, COLOR_GREEN,":: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /opendoor(/od)");
SendClientMessage(playerid, COLOR_GREEN,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /askq /animlist /stopanim /fuel");
SendClientMessage(playerid, COLOR_GREEN,":: GENERAL :: (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist");
SendClientMessage(playerid, COLOR_GREEN,":: GENERAL :: (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smoke");
SendClientMessage(playerid, COLOR_GREEN,":: CHAT :: (/p)me (/cw)hisper (/o)oc (/s)hout /low (/b) (/f)action /me /do /togooc /tognews /togfam /togpm /togphone");
SendClientMessage(playerid, COLOR_GREEN,":: BANK :: /balance /withdraw /deposit /wiretransfer");
}
return 1;
}

|
Originally Posted by Ykelder
That wasn't my question... Please tell me why I get errors on the line with If and return
|

if(strcmp(cmdtext, "/help", true) == 0)

|
Originally Posted by Joe Torran C
Show us your OnPlayerCommandText callback
|