Problem with one command..
#1

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;
}
Reply


Messages In This Thread
Problem with one command.. - by dundolina - 31.03.2015, 13:04
Re: Problem with one command.. - by BleverCastard - 31.03.2015, 13:16
Re: Problem with one command.. - by dundolina - 31.03.2015, 13:55
Re: Problem with one command.. - by CalvinC - 31.03.2015, 14:32
Re: Problem with one command.. - by BleverCastard - 31.03.2015, 14:37
Re: Problem with one command.. - by Gammix - 31.03.2015, 14:40

Forum Jump:


Users browsing this thread: 2 Guest(s)