31.03.2015, 13:04
Hello i have one problem with one of the commands in my server. When i write the command dont give me 1 message to all server and give me many many and the chat bug : http://prikachi.com/images/994/8017994V.jpg and this is the command :
Код:
if(strcmp(cmd,"/givescoreall",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "ИЗПОЛЗВАЙ: /givescoreall [ точки ]"); return 1; } new kills1; kills1 = strval(tmp); if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, -1, "Нямаш достатъчно права, за да използваш командата!"); for(new i; i < MAX_PLAYERS; i++) { PlayerInfo[i][pKills] += kills1; SetPlayerScore(i, PlayerInfo[i][pKills]); format(string, sizeof(string), "%s даде %d точки на всички играчи в сървъра!", PlayerName(playerid), PlayerInfo[i][pKills]); SendClientMessageToAll(COLOR_RED,string); } return 1; }