05.03.2018, 18:25
why is str undefined ?
Код:
if(pInfo[playerid][Admin] < 1) { if(text[0] == '@') { new str[128]; format(str, sizeof(str), "{F781F3}(ADMIN CHAT) %s(%d): %s", PlayerName[playerid],playerid, str); SendMessageToAdmins(str); } else if(pInfo[playerid][Admin] == 0) { SendClientMessageToAll(-1, str); } } return 0; }
PHP код:
SendClientMessageToAll(-1, str);