addscore or setscore command
#2

Quote:
Originally Posted by SaYrOn
Посмотреть сообщение
pawn Код:
if(strcmp(cmd, "/setscore", true) == 0)
    {
       
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GREY, "Usage: /setscore [playerid/PartOfName] [Level]");
                return 1;
            }
            new para1;
            new level;
            para1 = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            level = strval(tmp);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GREY, "Usage: /setscore [playerid/PartOfName] [Level]");
                return 1;
            }
            if (IsPlayerAdmin(playerid) == 1)
            {
                if(IsPlayerConnected(para1))
                {
                    if(para1 != INVALID_PLAYER_ID)
                    {
                        SetPlayerScore(para1, level);

                        format(string, sizeof(string), "[Server] You have set %s 's score to %d .", GetPlayerNameEx(para1),level);
                        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

                        format(string, sizeof(string), "[Server] You have been set %d score by %s.", level,GetPlayerNameEx(playerid));
                        SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                    }
                }//not connected
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "Your not an administrator.");
            }
        return 1;
    }
I Got This Error Using that command

Код:
C:\Users\GMZeus\Desktop\Cops Robbers Project\filterscripts\strcmp_command.pwn(140) : error 017: undefined symbol "cmd"
C:\Users\GMZeus\Desktop\Cops Robbers Project\filterscripts\strcmp_command.pwn(143) : error 017: undefined symbol "tmp"
C:\Users\GMZeus\Desktop\Cops Robbers Project\filterscripts\strcmp_command.pwn(143) : error 017: undefined symbol "strtok"
C:\Users\GMZeus\Desktop\Cops Robbers Project\filterscripts\strcmp_command.pwn(144) : error 017: undefined symbol "tmp"
C:\Users\GMZeus\Desktop\Cops Robbers Project\filterscripts\strcmp_command.pwn(151) : error 017: undefined symbol "ReturnUser"
C:\Users\GMZeus\Desktop\Cops Robbers Project\filterscripts\strcmp_command.pwn(152) : error 017: undefined symbol "tmp"
C:\Users\GMZeus\Desktop\Cops Robbers Project\filterscripts\strcmp_command.pwn(152) : error 017: undefined symbol "strtok"
C:\Users\GMZeus\Desktop\Cops Robbers Project\filterscripts\strcmp_command.pwn(153) : error 017: undefined symbol "tmp"
C:\Users\GMZeus\Desktop\Cops Robbers Project\filterscripts\strcmp_command.pwn(154) : error 017: undefined symbol "tmp"
C:\Users\GMZeus\Desktop\Cops Robbers Project\filterscripts\strcmp_command.pwn(167) : error 017: undefined symbol "string"
C:\Users\GMZeus\Desktop\Cops Robbers Project\filterscripts\strcmp_command.pwn(167) : error 017: undefined symbol "string"
C:\Users\GMZeus\Desktop\Cops Robbers Project\filterscripts\strcmp_command.pwn(167) : error 029: invalid expression, assumed zero
C:\Users\GMZeus\Desktop\Cops Robbers Project\filterscripts\strcmp_command.pwn(167) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


13 Errors.
Reply


Messages In This Thread
addscore or setscore command - by Patrick - 04.10.2012, 16:56
Re: addscore or setscore command - by Patrick - 04.10.2012, 17:06
Re: addscore or setscore command - by RedJohn - 04.10.2012, 17:11
Re: addscore or setscore command - by Patrick - 04.10.2012, 17:20
Re: addscore or setscore command - by Patrick - 04.10.2012, 17:34
Re: addscore or setscore command - by RedJohn - 04.10.2012, 17:56
Re: addscore or setscore command - by Patrick - 04.10.2012, 18:03
Re: addscore or setscore command - by RedJohn - 04.10.2012, 18:30
Re: addscore or setscore command - by Patrick - 04.10.2012, 19:56
Re: addscore or setscore command - by RedJohn - 04.10.2012, 22:39

Forum Jump:


Users browsing this thread: 1 Guest(s)