SetPVarInt
#1

I'm having some problems with SetPVarInt on my gamemode.

This is the code:
pawn Код:
if (PlayerInfo[playerid][pAdmin] >= 4)
            {
                for(new i = 0; i < MAX_PLAYERS; i ++)
                {
                    if(IsPlayerConnected(i))
                    {
                        if(PlayerInfo[i][pPbiskey] == biz)
                        {
                            PlayerInfo[i][pPbiskey] = 255;
                        }
                        else
                        {
                            format(string, sizeof(string),"accounts/%s.ini",BizzInfo[biz][bOwner]);
                            SetPVarInt(BizzInfo[biz][bOwner], "Bizz", 255);
                        }
                    }
                }
if(PlayerInfo[i][pPbiskey] == biz) works fine when the owner of the biz is online on the server, but I have problems to set up on his .ini file when the owner of the biz is offline. It doesn't set up the "Bizz" line on 255.
Is this possible with pVar, if it is - what do I have to do?
Reply


Messages In This Thread
SetPVarInt - by GloomY - 18.07.2011, 09:58
Re: SetPVarInt - by JaTochNietDan - 18.07.2011, 10:08
Re: SetPVarInt - by GloomY - 18.07.2011, 10:13
Re: SetPVarInt - by JaTochNietDan - 18.07.2011, 10:15
Re: SetPVarInt - by GloomY - 18.07.2011, 10:18

Forum Jump:


Users browsing this thread: 1 Guest(s)