Spec command help
#1

C:\Users\Owner\Desktop\FCRP ECRP\gamemodes\ProjectElgin.pwn(42571) : error 017: undefined symbol "giveplayer"
C:\Users\Owner\Desktop\FCRP ECRP\gamemodes\ProjectElgin.pwn(42571) : error 017: undefined symbol "giveplayer"
C:\Users\Owner\Desktop\FCRP ECRP\gamemodes\ProjectElgin.pwn(42571) : error 029: invalid expression, assumed zero
C:\Users\Owner\Desktop\FCRP ECRP\gamemodes\ProjectElgin.pwn(42571) : fatal error 107: too many error messages on one line

COMMANDpec(playerid, params[])
{
new tmp[256];
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /spec [Player ID]");
return 1;
}
new plo;
plo = strval(tmp);
GetPlayerName(plo, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if (IsPlayerConnected(plo))
{
if ((IsStaff_L4R(playerid)) || L2S[playerid]==1 )
{
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, plo);
format(prpstring, sizeof(prpstring), "(SSINFO) You are now spectating %s (ID:%d).", giveplayer,plo);
SendClientMessage(playerid, COLOR_YELLOW, prpstring);

}
else
{
return 0;
}
}
else
{
format(prpstring, sizeof(prpstring), "%d is not an active player.", plo);
SendClientMessage(playerid, COLOR_BRIGHTRED, prpstring);
}
return 1;
}
Reply


Messages In This Thread
Spec command help - by Cheynoa - 25.01.2013, 20:59
Re: Spec command help - by Roach_ - 25.01.2013, 21:02
Re: Spec command help - by Cheynoa - 25.01.2013, 21:05
Re: Spec command help - by Roach_ - 25.01.2013, 21:07
Re: Spec command help - by Cheynoa - 25.01.2013, 21:10

Forum Jump:


Users browsing this thread: 3 Guest(s)