SA-MP Forums Archive
Saveing System [+REP] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Saveing System [+REP] (/showthread.php?tid=312903)



Saveing System [+REP] - James Coral - 23.01.2012

Dudes i need saveing System in SFCNRRPG
i maded 1class more but the stats dont save like i use /adsf (it worked but the stats dont work)

My Saveing System:

pawn Код:
#define TEAM_SF 28
pawn Код:
dUserSetINT(PlayerName(playerid)).("SF",CanUseSF[playerid]);
My Command:
pawn Код:
dcmd_adsf(playerid,params[])
{
    new string[128];
    new ID;
    if(sscanf(params,"ui",ID))
    {
        SendClientMessage(playerid,COLOR_ERROR,"USAGE: /adsf (Player Name/ID)");
        return 1;
    }
    if(!IsPlayerConnected(ID))
    {
        format(string,sizeof(string),"The player ID (%d) is not connected to the server. You cannot give them SF status.",ID);
        SendClientMessage(playerid,COLOR_ERROR,string);
        return 1;
    }
    if(PLAYERLIST_authed[ID] != 1)
    {
        format(string,sizeof(string),"%s(%d) is not logged into to the server. You must wait till they login before you give them SF status.",PlayerName(ID),ID);
        SendClientMessage(playerid,COLOR_ERROR,string);
        return 1;
    }
    if(CanUseSF[ID] == 1337)
    {
        format(string,sizeof(string),"%s(%d) is already a SF member.",PlayerName(ID),ID);
        SendClientMessage(playerid,COLOR_ERROR,string);
        return 1;
    }
    format(string,sizeof(string),"[ADMIN SF] Administrator has given %s(%d) SF status.",PlayerName(ID),ID);
    SendClientMessageToAll(COLOR_ADMIN,string);

    SendClientMessage(ID,COLOR_ADMIN,"You have been given SF status by a Server Administrator. Congratulations.");
    CanUseSF[ID] =1337;

    format(string,sizeof(string),"9[ADMIN SF] Administrator has given %s(%d) SF status.",PlayerName(ID),ID);
    IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
    return 1;
}
pawn Код:
dUserSetINT(PlayerName(playerid)).("SF",0);
But it dont Save The Stats


Re: Saveing System [+REP] - James Coral - 23.01.2012

Someone?