06.03.2015, 19:01
Hello everybody, well the problem I am having is the 3DTextLabels I am using as names they are messing up between players. For example Player_A is having Player_B's name in the 3dTextLabel and Player_B is having nothing in his nametag, but the debug prints everything fine?
Prints:
Thanks in advance.
pawn Код:
public OnLoginSave(playerid) // Per player timer. (Starts when they log in)
{
if(!Logged[playerid]) return 0; //
new str_name[40];
if(PlayerInfo[playerid][vM] == 1)
{
format(str_name,sizeof(str_name),"%s",NameEx(playerid));
Update3DTextLabelText(Shi[playerid],WHITE,str_name);
printf("(%s) STR_NAME: %s",NameEx(playerid),str_name);
return 2;
}
return 1;
}
Код:
(Player_A) STR_NAME: Player_A (Player_B) STR_NAME: Player _B