31.12.2009, 14:26
Simple problem but im not all that used to dcmd so i dont know what to do exactly
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,
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;
}
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.