Textdraw only gets showed to id 0?
#1

Fixed
Reply
#2

You've taken TextDrawShowForPlayer out of your loop. Put it inside the loop, and change playerid to i
Reply
#3

1 problem now it shows location names of id 0.... How to change that? :S
Reply
#4

I completely misread your first post...

Just explain again what you want your script to do?
If your looking for the location of one particular person, you don't need a loop
Reply
#5

I want it to show the location name for each player... And if i dont use the loop it doesnt show to Id 1 and higher anymore
Reply
#6

Right.

Firstly, in GlobalTimer, you need to change the "playerid"s to "a" within the loop.

Secondly, Where is your TextDrawShow code actually located? What public function?
Reply
#7

OnPlayerConnect(playerid) ...
Reply
#8

Scrap the loop.

pawn Код:
TextDrawAlignment(APlayerData[playerid][Location], 2);
TextDrawBackgroundColor(APlayerData[playerid][Location], 255);
TextDrawFont(APlayerData[playerid][Location], 2);
TextDrawLetterSize(APlayerData[playerid][Location],0.280000, 1.100000);
TextDrawColor(APlayerData[playerid][Location], -1);
TextDrawSetOutline(APlayerData[playerid][Location], 1);
TextDrawSetProportional(APlayerData[playerid][Location], 1);
TextDrawShowForPlayer(playerid, APlayerData[playerid][Location]);
Change all i's to playerid's
Reply
#9

Your using playerid within the loop. Change playerid to a.

GlobalTimer(playerid) should then be changed to GlobalTimer().
Reply
#10

I had that before rob but that didnt show above ID 0
~Edit: Its fixed i guess..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)