undefined symbol "playerid" - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: undefined symbol "playerid" (
/showthread.php?tid=446399)
undefined symbol "playerid" -
OpticKiller - 25.06.2013
cant seem to fix this does anyone know the idea of it
Код:
C:\Users\Brandon\Desktop\IGRP\gamemodes\IG.pwn(2148) : error 017: undefined symbol "playerid"
C:\Users\Brandon\Desktop\IGRP\gamemodes\IG.pwn(2148) : error 017: undefined symbol "playerid"
Код:
for (new i = 0; i < APPROX_PLAYERS; i++)
{
if(PlayerInfo[playerid][pFaction] != 6) return SendClientMessage(playerid, -1, "You are not in a faction.");
{
SetPlayerCheckpoint(i, RandomFire_X,RandomFire_Y,RandomFire_Z, 3.0);
SendClientMessage(i, COLOR_LIGHTBLUE, "(INFO) A marker has been put on your GPS.");
}
}
Error line
Код:
if(PlayerInfo[playerid][pFaction] != 6) return SendClientMessage(playerid, -1, "You are not in a faction.");
Re: undefined symbol "playerid" -
Mystique - 25.06.2013
Read the error. Playerid was never defined. To have playerid there it has to be in a function where playerid is defined. In what callback is that?
Or was it mean't to use "i" where you check the faction of a player?
Re: undefined symbol "playerid" -
Yves - 25.06.2013
there is a define. cant understand why it wont work.
Re: undefined symbol "playerid" -
OpticKiller - 25.06.2013
Fixed it.
Re : undefined symbol "playerid" -
morocco - 25.06.2013
if(PlayerInfo[playerid][pFaction] != 6) return SendClientMessage(playerid, -1, "You are not in a faction.");
Change to
if(PlayerInfo[i][pFaction] != 6) return SendClientMessage(i, -1, "You are not in a faction.");
edit :
i'm sorru ! i don't see this
Quote:
Originally Posted by OpticKiller
Fixed it.
|