SA-MP Forums Archive
error 017: undefined symbol "playerid", PlayerTextDraw - 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: error 017: undefined symbol "playerid", PlayerTextDraw (/showthread.php?tid=519457)



error 017: undefined symbol "playerid", PlayerTextDraw - [Cali]ChrOnic_T - 14.06.2014

So I just iPLEOMAX Textdraw editor, and I made some player textdraws but i get these errors when i compile

I did everything correct. idk what happened

New's:

pawn Код:
new PlayerText:Lv[MAX_PLAYERS];
new PlayerText:level[MAX_PLAYERS];
new PlayerText:aboverank[MAX_PLAYERS];
Textdraws:

pawn Код:
Lv[playerid] = CreatePlayerTextDraw(playerid, 554.375000, 25.666675, "Lv.");
PlayerTextDrawLetterSize(playerid, Lv[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Lv[playerid], 1);
PlayerTextDrawColor(playerid, Lv[playerid], -1);
PlayerTextDrawSetShadow(playerid, Lv[playerid], 0);
PlayerTextDrawSetOutline(playerid, Lv[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Lv[playerid], 51);
PlayerTextDrawFont(playerid, Lv[playerid], 1);
PlayerTextDrawSetProportional(playerid, Lv[playerid], 1);

level[playerid] = CreatePlayerTextDraw(playerid, 575.625000, 24.499986, "0");
PlayerTextDrawLetterSize(playerid, level[playerid], 0.303124, 1.798334);
PlayerTextDrawAlignment(playerid, level[playerid], 1);
PlayerTextDrawColor(playerid, level[playerid], -1);
PlayerTextDrawSetShadow(playerid, level[playerid], 0);
PlayerTextDrawSetOutline(playerid, level[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, level[playerid], 51);
PlayerTextDrawFont(playerid, level[playerid], 1);
PlayerTextDrawSetProportional(playerid, level[playerid], 1);

aboverank[playerid] = CreatePlayerTextDraw(playerid, 554.375000, 12.833332, "Regular Player");
PlayerTextDrawLetterSize(playerid, aboverank[playerid], 0.310625, 1.395833);
PlayerTextDrawAlignment(playerid, aboverank[playerid], 1);
PlayerTextDrawColor(playerid, aboverank[playerid], -1);
PlayerTextDrawSetShadow(playerid, aboverank[playerid], 0);
PlayerTextDrawSetOutline(playerid, aboverank[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, aboverank[playerid], 51);
PlayerTextDrawFont(playerid, aboverank[playerid], 1);
PlayerTextDrawSetProportional(playerid, aboverank[playerid], 1);
Please tell me whatss wrong with it. Cause players keep complaining about it flashing cause i had it as a global textdraw Now i need to make it a player textdraw to only show to that player. and not the whole server.


Re: error 017: undefined symbol "playerid", PlayerTextDraw - DavidBilla - 14.06.2014

Where did you put the create textdraw lines?


Re: error 017: undefined symbol "playerid", PlayerTextDraw - Eth - 14.06.2014

put those on onplayerconnect not ongamemodeinit.
pawn Код:
Lv[playerid] = CreatePlayerTextDraw(playerid, 554.375000, 25.666675, "Lv.");
PlayerTextDrawLetterSize(playerid, Lv[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Lv[playerid], 1);
PlayerTextDrawColor(playerid, Lv[playerid], -1);
PlayerTextDrawSetShadow(playerid, Lv[playerid], 0);
PlayerTextDrawSetOutline(playerid, Lv[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Lv[playerid], 51);
PlayerTextDrawFont(playerid, Lv[playerid], 1);
PlayerTextDrawSetProportional(playerid, Lv[playerid], 1);

level[playerid] = CreatePlayerTextDraw(playerid, 575.625000, 24.499986, "0");
PlayerTextDrawLetterSize(playerid, level[playerid], 0.303124, 1.798334);
PlayerTextDrawAlignment(playerid, level[playerid], 1);
PlayerTextDrawColor(playerid, level[playerid], -1);
PlayerTextDrawSetShadow(playerid, level[playerid], 0);
PlayerTextDrawSetOutline(playerid, level[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, level[playerid], 51);
PlayerTextDrawFont(playerid, level[playerid], 1);
PlayerTextDrawSetProportional(playerid, level[playerid], 1);

aboverank[playerid] = CreatePlayerTextDraw(playerid, 554.375000, 12.833332, "Regular Player");
PlayerTextDrawLetterSize(playerid, aboverank[playerid], 0.310625, 1.395833);
PlayerTextDrawAlignment(playerid, aboverank[playerid], 1);
PlayerTextDrawColor(playerid, aboverank[playerid], -1);
PlayerTextDrawSetShadow(playerid, aboverank[playerid], 0);
PlayerTextDrawSetOutline(playerid, aboverank[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, aboverank[playerid], 51);
PlayerTextDrawFont(playerid, aboverank[playerid], 1);
PlayerTextDrawSetProportional(playerid, aboverank[playerid], 1);