/slap rcon command
#5

Quote:
Originally Posted by Mokerr
Посмотреть сообщение
pawn Код:
if(strcmp(cmd, "/slap", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_FAILRED, "/slap [playerid]");
                return 1;
            }
            new giveplayerid;
            giveplayerid = ReturnUser(tmp);
            new Float:x, Float:y, Float:z;
            if (IsPlayerAdmin(playerid))
            {
                if(IsPlayerConnected(giveplayerid))
                {
                    if(giveplayerid != INVALID_PLAYER_ID)
                    {
                        GetPlayerPos(giveplayerid, x, y, z);
                        SafeSetPlayerPos(giveplayerid, x, y, z+5);
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_RED, "Invalid ID!");
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_RED, "Your not authorised to use this command.);
            }
        }
        return 1;
    }
got errors

Код:
C:\Users\Stephen-Laptop\Desktop\server samp - Copy\filterscripts\adminscript.pwn(583) : error 017: undefined symbol "tmp"
C:\Users\Stephen-Laptop\Desktop\server samp - Copy\filterscripts\adminscript.pwn(584) : error 017: undefined symbol "tmp"
C:\Users\Stephen-Laptop\Desktop\server samp - Copy\filterscripts\adminscript.pwn(590) : error 017: undefined symbol "ReturnUser"
C:\Users\Stephen-Laptop\Desktop\server samp - Copy\filterscripts\adminscript.pwn(609) : error 037: invalid string (possibly non-terminated string)
C:\Users\Stephen-Laptop\Desktop\server samp - Copy\filterscripts\adminscript.pwn(609) : error 017: undefined symbol "Your"
C:\Users\Stephen-Laptop\Desktop\server samp - Copy\filterscripts\adminscript.pwn(609) : error 017: undefined symbol "not"
C:\Users\Stephen-Laptop\Desktop\server samp - Copy\filterscripts\adminscript.pwn(609) : fatal error 107: too many error messages on one line

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


7 Errors.
Reply


Messages In This Thread
/slap rcon command - by hadzx - 25.01.2011, 20:22
Re: /slap rcon command - by hadzx - 25.01.2011, 21:00
Re: /slap rcon command - by blackwave - 25.01.2011, 21:02
Re: /slap rcon command - by Mokerr - 25.01.2011, 22:01
Re: /slap rcon command - by hadzx - 25.01.2011, 22:31
Re: /slap rcon command - by Grim_ - 25.01.2011, 22:41
Re: /slap rcon command - by hadzx - 25.01.2011, 22:49
Re: /slap rcon command - by Scenario - 25.01.2011, 23:04
Re: /slap rcon command - by Mokerr - 25.01.2011, 23:20
Re: /slap rcon command - by Steven82 - 26.01.2011, 03:46

Forum Jump:


Users browsing this thread: 4 Guest(s)