[HELP] OnPlayerConnect to textdraw update
#4

Quote:
Originally Posted by Amads
Посмотреть сообщение
Perhaps you load your PlayerInfo AFTER this code?
Amads want to say that, you are reseting the variables before the textdraws, like this:



PHP код:
PlayerInfo[playerid][pLevel] = 0;
PlayerInfo[playerid][pJob] = 0;
PlayerInfo[playerid][pMember] = 0;
and 
then you use:
PlayerTextDrawSetPreviewModel(playerid,LoginRegs5[playerid], GetPlayerSkin(playerid));
PlayerTextDrawShow(playerid,LoginRegs5[playerid]);
new 
imea[50];
format(imea,sizeof(imea),"%s",GetName(playerid));
PlayerTextDrawSetString(playerid,LoginRegs13[playerid], imea);
PlayerTextDrawShow(playerid,LoginRegs13[playerid]);
new 
levela[50];
format(levela,sizeof(levela),"%d",PlayerInfo[playerid][pLevel]);
PlayerTextDrawSetString(playerid,LoginRegs14[playerid], levela);
PlayerTextDrawShow(playerid,LoginRegs14[playerid]);
new 
posoooo[50];
format(posoooo,sizeof(posoooo),"%s",PlayerInfo[playerid][pJob]);
PlayerTextDrawSetString(playerid,LoginRegs16[playerid], posoooo);
PlayerTextDrawShow(playerid,LoginRegs16[playerid]);
new 
orgaz[50];
format(orgaz,sizeof(orgaz),"%s",PlayerInfo[playerid][pMember]);
PlayerTextDrawSetString(playerid,LoginRegs17[playerid],orgaz);
PlayerTextDrawShow(playerid,LoginRegs17[playerid]);
new 
dona[50];
format(dona,sizeof(dona),"%d",PlayerInfo[playerid][pVip]);
PlayerTextDrawSetString(playerid,LoginRegs15[playerid],dona);
PlayerTextDrawShow(playerid,LoginRegs15[playerid]); 
Also, i think this will not work because, the player must login/register, to load their Dates from your Database.
Just if you use Auto-Login and put this after the Auto-Login function. That's my opinion.
Reply


Messages In This Thread
[HELP] OnPlayerConnect to textdraw update - by Markoni990 - 13.01.2017, 08:58
Re: [HELP] OnPlayerConnect to textdraw update - by Amads - 13.01.2017, 09:34
Re: [HELP] OnPlayerConnect to textdraw update - by Markoni990 - 13.01.2017, 10:44
Re: [HELP] OnPlayerConnect to textdraw update - by FaLLenGirL - 13.01.2017, 11:25
Re: [HELP] OnPlayerConnect to textdraw update - by Markoni990 - 13.01.2017, 11:31
Re: [HELP] OnPlayerConnect to textdraw update - by FaLLenGirL - 13.01.2017, 11:36
Re: [HELP] OnPlayerConnect to textdraw update - by Markoni990 - 13.01.2017, 11:39
Re: [HELP] OnPlayerConnect to textdraw update - by darkdrago - 13.01.2017, 13:46

Forum Jump:


Users browsing this thread: 2 Guest(s)