Wierd Error
#1

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]);
Reply
#2

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

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.
Reply
#4

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?
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)