Help a fellow Newbie Programmer..
#8

Quote:
Originally Posted by xVIP3Rx
Посмотреть сообщение
Which exactly, the loading and setting ?
If so just show me the current "OnAccountLoad" function and I will do it for you, I just can't magically expect what's in there.
Oh, sorry my bad:
Код:
forward OnAccountLoad(playerid); 
public OnAccountLoad(playerid) 
{ 
    Player[playerid][Admin] = cache_get_field_content_int(0, "Admin"); 
    Player[playerid][VIP] = cache_get_field_content_int(0, "VIP"); 
    Player[playerid][Money] = cache_get_field_content_int(0, "Money");
    Player[playerid][PosX] = cache_get_field_content_float(0, "PosX"); 
    Player[playerid][PosY] = cache_get_field_content_float(0, "PosY"); 
    Player[playerid][PosZ] = cache_get_field_content_float(0, "PosZ"); 
    Player[playerid][PosA] = cache_get_field_content_float(0, "PosA"); 
    Player[playerid][SkinID] = cache_get_field_content_float(0, "SkinID"); 
  
    TogglePlayerSpectating(playerid, false); 

    GivePlayerMoney(playerid, Player[playerid][Money]); 

    SetSpawnInfo(playerid, 0, 23, Player[playerid][PosX], Player[playerid][PosY], Player[playerid][PosZ], Player[playerid][PosA], 0, 0, 0, 0, 0, 0); 
    SpawnPlayer(playerid); 

    SendClientMessage(playerid, COLOR_WHITE, "{FFFFFF}Welcome to {FFBB00}Placeholder.");
 
    return 1; 
}
Reply


Messages In This Thread
Help a fellow Newbie Programmer.. - by SparkyCode - 31.08.2015, 09:34
Re: Help a fellow Newbie Programmer.. - by Virtual1ty - 31.08.2015, 10:19
Re: Help a fellow Newbie Programmer.. - by SparkyCode - 31.08.2015, 14:18
Re: Help a fellow Newbie Programmer.. - by Sjn - 31.08.2015, 14:34
Re: Help a fellow Newbie Programmer.. - by xVIP3Rx - 31.08.2015, 15:05
Re: Help a fellow Newbie Programmer.. - by SparkyCode - 31.08.2015, 15:30
Re: Help a fellow Newbie Programmer.. - by xVIP3Rx - 31.08.2015, 15:40
Re: Help a fellow Newbie Programmer.. - by SparkyCode - 31.08.2015, 21:52
Re: Help a fellow Newbie Programmer.. - by xVIP3Rx - 31.08.2015, 23:52

Forum Jump:


Users browsing this thread: 1 Guest(s)