13.01.2017, 11:25
Amads want to say that, you are reseting the variables before the textdraws, like this:
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.
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]);
Just if you use Auto-Login and put this after the Auto-Login function. That's my opinion.