Textdraw issue - 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 issue (
/showthread.php?tid=412598)
Textdraw issue -
Tamer - 02.02.2013
Hello,I am using this:
pawn Код:
new PlayerText:Textdraw0[MAX_PLAYERS];
OnPlayerConnect:
pawn Код:
Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 1.599999, 409.920013, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 638.400024, 38.079986);
PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw0[playerid], 255);
PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);
PlayerTextDrawFont(playerid, Textdraw0[playerid], 4);
Onrequestclass: (Under case 0)
pawn Код:
TextDrawShowForPlayer(playerid, Textdraw0[playerid]); // tried both,at different times,commenting them,seperetly
TextDrawShowForPlayer(playerid, Textdraw0);
argument mismatch error for both.
Re: Textdraw issue -
Kirollos - 02.02.2013
Shouldn't you use PlayerTextDrawShow(playerid, Textraw0[playerid]); ?
Re: Textdraw issue -
Tamer - 02.02.2013
Код:
C:\Users\Tamer\Desktop\pwn\AVT scripting\gamemodes\GameMode.pwn(2650) : error 017: undefined symbol "Textraw0"
C:\Users\Tamer\Desktop\pwn\AVT scripting\gamemodes\GameMode.pwn(2650) : warning 215: expression has no effect
C:\Users\Tamer\Desktop\pwn\AVT scripting\gamemodes\GameMode.pwn(2650) : error 001: expected token: ";", but found "]"
C:\Users\Tamer\Desktop\pwn\AVT scripting\gamemodes\GameMode.pwn(2650) : error 029: invalid expression, assumed zero
C:\Users\Tamer\Desktop\pwn\AVT scripting\gamemodes\GameMode.pwn(2650) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: Textdraw issue -
Misiur - 02.02.2013
Look carefully before pasting - at least one typo (typo in your code)
@OP:
Oh, sorry, thought that you rewrote code by hand with typo
Re: Textdraw issue -
Tamer - 02.02.2013
I found it,it was PlayerTextDrawShow(playerid, Textraw0[playerid]);
textraw instead of textdraw lol
Re: Textdraw issue -
Kirollos - 02.02.2013
Yeah sorry it should be PlayerTextDrawShow(playerid, Textdraw0[playerid]);
i forgot to write the "d"