24.05.2009, 09:49
I have following command in my reallife script:
When I do /setmember 1, text appears always for id 0. I need to appear it ID I enter like /setmember 1. What is the problem?
Код:
} if(strcmp(cmd, "/setmember", true) == 0) { new playername[MAX_PLAYERS]; new ID = strval(cmdtext[6]); new pName[24]; GetPlayerName(ID, pName, 24); GetPlayerName(playerid, playername, sizeof(playername)); format(string, sizeof(string), "%s has set you member of his organization!", playername); SendClientMessage(ID, COLOR_YELLOW, string); return 1; }