gTeam dini Saving Problem ~ HELP !
#1

Solved..
Reply
#2

Anybody help please ? :S
Reply
#3

you must team make in job id for can save team, I can help you little,
PHP код:
 new Vampire[MAX_PLAYERS]
new 
Human[MAX_PLAYERS]
#define TEAM_VAMPIRE 1
#define TEAM_HUMAN 2
AddPlayerClassEx(TEAM_HUMAN,2,1529.3446,-888.6906,61.1224,49.6362,0,0,0,0,0,0);
AddPlayerClassEx(TEAM_VAMPIRE,2,1529.3446,-888.6906,61.1224,49.6362,0,0,0,0,0,0);
onplayerrequestspawn()
switch (
classid) {
        case 
0:
            {
                
GameTextForPlayer(playerid"~w~Human",5003);
                if(
GetPlayerJobID(playerid) == 2)
                {
                
GameTextForPlayer(playerid"~w~Human~n~~n~~n~~n~~n~~g~ Available for you]"5003);
                return 
1;
                }
                else
                {
                
GameTextForPlayer(playerid"~w~Human~n~~n~~n~~n~~n~~r~ Not available for you]"5003);
                return 
1;
                }
            }
        case 
1:
            {
                
GameTextForPlayer(playerid"~w~Vampire",5003);
                if(
GetPlayerJobID(playerid) == 9)
                {
                
GameTextForPlayer(playerid"~w~Vampire~n~~n~~n~~n~~n~~g~ Available for you]"5003);
                return 
1;
                }
                else
                {
                
GameTextForPlayer(playerid"~w~Vampire~n~~n~~n~~n~~n~~r~ Not available for you]"5003);
                return 
1;
                }
            }
if(
logged_in[playerid] == 1)
    {
    new 
pfile[100], pname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpnamesizeof(pname));
    
format(pfilesizeof(pfile), "Users/%s.ini",pname);
    
dini_IntSet(pfile"Cash"GetPlayerMoney(playerid));
    
dini_IntSet(pfile"Score"GetPlayerScore(playerid));
    
dini_IntSet(pfile"Job"GetPlayerJobID(playerid));
            }
    
logged_in[playerid] = 0;
return 
1;

I hope you will finish and will help you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)