Error
#1

Simple problem but im not all that used to dcmd so i dont know what to do exactly

pawn Код:
dcmd_goto(playerid, params[])
{
    if (strlen(params))
    {
        id = strval(params);
        if (IsPlayerConnected(id))
        {
        if(IsPlayerAdmin(playerid))
        {
            SendClientMessage(playerid, COLOR_WHITE, "Command working Ok?");
        }
        else
        {
            SendClientMessage(playerid, 0xFF0000AA, "Player not found");
        }
        }
        else
        {
          SendClientMessage(playerid, 0xFF0000AA, "You are not an Administrator");
        }
    }
    else
    {
        SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/heal <playerid>\"");
    }
    return 1;
}
If the isplayeradmin or whatever wrong dont fix it for me, I wanna do that myself xd,
I just want to get rid of these errors first,

Код:
C:\Users\Torran\Documents\Server\gamemodes\sftdm.pwn(380) : error 017: undefined symbol "id"
C:\Users\Torran\Documents\Server\gamemodes\sftdm.pwn(381) : error 017: undefined symbol "id"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply


Messages In This Thread
Error - by JoeDaDude - 31.12.2009, 14:26
Re: Error - by Marcel - 31.12.2009, 14:27
Re: Error - by Correlli - 31.12.2009, 14:27
Re: Error - by Nameless303 - 31.12.2009, 14:28
Re: Error - by JoeDaDude - 31.12.2009, 14:35
Re: Error - by Marcel - 31.12.2009, 14:53
Re: Error - by JoeDaDude - 31.12.2009, 15:29
Re: Error - by JoeDaDude - 31.12.2009, 16:54
Re: Error - by KnooL - 31.12.2009, 17:30
Re: Error - by JoeDaDude - 31.12.2009, 17:37

Forum Jump:


Users browsing this thread: 2 Guest(s)