27.04.2012, 05:48
Quote:
|
My server just started sayin unknown command to all commands such as:
if (strcmp("/commands", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "Phonecmds: /sms (number)(message) /call /phonebook "); SendClientMessage(playerid, COLOR_PINK, "RPcmds: /me /do"); SendClientMessage(playerid, COLOR_GREEN, "Teleportcmds: /gotolift /gotoraft"); SendClientMessage(playerid, COLOR_GREEN, "Misc_CMDs: /r /giveobject (Coming Soon) /setsail (1-3)"); SendClientMessage(playerid, COLOR_GREEN, "Misc_CMDs 2: /sendtohub /sendtoearth /pr0anims "); return 1; } and i cant find any reason why,please help ![]() |
pawn Code:
if (strcmp("/commands", cmdtext, true, 9) == 0) // string count for /commands would be 9, not 10
{
SendClientMessage(playerid, COLOR_YELLOW, "Phonecmds: /sms (number)(message) /call /phonebook ");
SendClientMessage(playerid, COLOR_PINK, "RPcmds: /me /do");
SendClientMessage(playerid, COLOR_GREEN, "Teleportcmds: /gotolift /gotoraft");
SendClientMessage(playerid, COLOR_GREEN, "Misc_CMDs: /r /giveobject (Coming Soon) /setsail (1-3)");
SendClientMessage(playerid, COLOR_GREEN, "Misc_CMDs 2: /sendtohub /sendtoearth /pr0anims ");
return 1;
}
c 2
o 3
m 4
m 5
a 6
n 7
d 8
s 9


