textdraw 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: textdraw error (
/showthread.php?tid=597432)
textdraw error -
itachi - 31.12.2015
Code:
TextDraw[i][playerid] = CreatePlayerTextDraw(playerid,501.5, TestTD(i), "Hrac _[Honza]_ se odwarpoval do San Fierra");
Code:
stock TestTD(cislo)
{
switch(cislo)
{
case 0: return 341;
case 1: return 331;
case 2: return 321;
case 3: return 311;
case 4: return 301;
}
return 0;
}
error :
Code:
error 017: undefined symbol "TextDraw"
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Re: textdraw error -
Karan007 - 31.12.2015
Try this
PHP Code:
TextDraw[playerid] = CreatePlayerTextDraw(playerid,501.5, TestTD(i), "Hrac _[Honza]_ se odwarpoval do San Fierra");
Re: textdraw error -
VincenzoDrift - 31.12.2015
Code:
new Text:TextDraw[playerid];
TextDraw[playerid] = CreatePlayerTextDraw(playerid,501.5, TestTD(i), "Hrac _[Honza]_ se odwarpoval do San Fierra");
Try this
Re: textdraw error -
Shinta307 - 31.12.2015
Use
new Text:TextDraw[MAX_PLAYERS];
Re: textdraw error -
Stanford - 31.12.2015
pawn Code:
new PlayerText:pTextDraws[MAX_PLAYERS][MAX_PLAYER_TEXTDRAWS];
At the top of your script.
Note: this array is for player TEXTDRAWS only (CreatePlayerTextDraw)
I hope I helped!