SA-MP Forums Archive
Wierd Error - 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: Wierd Error (/showthread.php?tid=331775)



Wierd Error - HondaCBR - 05.04.2012

Errors/Warnings:
pawn Код:
error 017: undefined symbol "PlayerTextDrawHide"
warning 215: expression has no effect
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Native:
pawn Код:
native PlayerTextDrawShow(playerid, PlayerText:text);
native PlayerTextDrawHide(playerid, PlayerText:text);
Error Code:
pawn Код:
PlayerTextDrawHide(playerid, TextdrawBW2[playerid]);
Rest of code:
pawn Код:
new PlayerText:TextdrawBW2[MAX_PLAYERS];

TextdrawBW2[playerid] = CreatePlayerTextDraw(571.000000, 431.000000, bwstring);
PlayerTextDrawBackgroundColor(playerid, TextdrawBW2[playerid], 255);
PlayerTextDrawFont(playerid, TextdrawBW2[playerid], 1);
PlayerTextDrawLetterSize(playerid, TextdrawBW2[playerid], 0.500000, 1.000000);
PlayerTextDrawColor(playerid, TextdrawBW2[playerid], -65281);
PlayerTextDrawSetOutline(playerid, TextdrawBW2[playerid], 1);
PlayerTextDrawSetProportional(playerid, TextdrawBW2[playerid], 1);
PlayerTextDrawShow(playerid,  TextdrawBW2[playerid]);



Re: Wierd Error - BlackBank - 05.04.2012

Try to update the includes.
If that isn't working, just add the native above in your script.


Re: Wierd Error - HondaCBR - 05.04.2012

they are from my script, includes didn't work for me so I added the natives, but for some reason I still get an error.


Re: Wierd Error - BlackBank - 05.04.2012

Quote:
Originally Posted by HondaCBR
Посмотреть сообщение
they are from my script, includes didn't work for me so I added the natives, but for some reason I still get an error.
The same error or an other one?


Re: Wierd Error - HondaCBR - 05.04.2012

I already had the natives, error is the same...