Textdraw issue
#1

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

Shouldn't you use PlayerTextDrawShow(playerid, Textraw0[playerid]); ?
Reply
#3

Код:
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.
Reply
#4

Look carefully before pasting - at least one typo (typo in your code)

@OP:
Oh, sorry, thought that you rewrote code by hand with typo
Reply
#5

I found it,it was PlayerTextDrawShow(playerid, Textraw0[playerid]);

textraw instead of textdraw lol
Reply
#6

Yeah sorry it should be PlayerTextDrawShow(playerid, Textdraw0[playerid]);

i forgot to write the "d"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)