11.07.2010, 18:55
if (sscanf(idx, "uz", giveplayerid, msg)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /pm [playerid/part of name] [message]");
whats wrong with this line??
whats wrong with this line??
Код:
new cmd[256]; new idx; cmd = strtok(cmdtext, idx); if(strcmp(cmd, "/pm", true) == 0) { new giveplayerid, msg; if (sscanf(idx, "us", giveplayerid, msg)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /pm [playerid/part of name] [message]"); else if (giveplayerid == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found"); else { //pm code } return 1; } return 0; }