SA-MP Forums Archive
undefined symbol "playerspawned" - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: undefined symbol "playerspawned" (/showthread.php?tid=200842)



undefined symbol "playerspawned" - LZLo - 19.12.2010

undefined symbol "playerspawned"

what should i do?


Re: undefined symbol "playerspawned" - JaTochNietDan - 19.12.2010

Define playerspawned, as it is undefined according to your error, I assume you have read the Pawn manual before attempting to use the language?


Re: undefined symbol "playerspawned" - blackwave - 19.12.2010

Sometimes I still don't believe people ask questions like this, where the probem is on the error title.


Re: undefined symbol "playerspawned" - Mean - 19.12.2010

pawn Код:
new playerspawned[MAX_PLAYERS];



Re: undefined symbol "playerspawned" - LZLo - 19.12.2010

public TDCx()
{
TextDrawHideForAll(infotext);
infotext = TextDrawCreate(7.000000, 322.000000, TDC[random(sizeof(TDC))]);
TextDrawBackgroundColor(infotext, 255);
TextDrawFont(infotext, 3);
TextDrawLetterSize(infotext, 0.500000, 1.000000);
TextDrawColor(infotext, -1);
TextDrawSetOutline(infotext, 0);
TextDrawSetProportional(infotext, 1);
TextDrawSetShadow(infotext, 1);

if(playerspawned == true)
{
TextDrawShowForPlayer(infotext);
}
return 1;
}


Re: undefined symbol "playerspawned" - JaTochNietDan - 19.12.2010

Well it would appear according to your code, that "playerspawned" is a single cell boolean, so you should create it in the global scope.

pawn Код:
new bool:playerspawned;
I'm not sure how else we can help if you're not telling us what you're trying to accomplish.