Increasing PVar
#1

Hey

I've got a Spawn Weapons dialog, which has a PVar what is 1 on connection, then when the player choose the weapon, I want it increasing. (when 3, then return "Must reset lammer!!11")

I made a lil' stock for it but it isn't working. I tried the easier way too like SetPVarInt(playerid,"SpawnCount",GetPVarInt(player id,"SpawnCount")+1); but it's not working. Here is the stock:
pawn Код:
stock IncreasePVarInt(playerid,PvarInt[]) {
    new inc;
    inc = GetPVarInt(playerid,PvarInt);
    inc++;
    SetPVarInt(playerid,PvarInt,inc);
    return 1;
}
Still the same result :\
Reply


Messages In This Thread
Increasing PVar - by Seven_of_Nine - 10.05.2011, 12:59
Re: Increasing PVar - by black_dota - 10.05.2011, 13:03
Re: Increasing PVar - by Seven_of_Nine - 10.05.2011, 13:09
Re: Increasing PVar - by cessil - 10.05.2011, 13:15
Re: Increasing PVar - by Seven_of_Nine - 10.05.2011, 13:18
Re: Increasing PVar - by Seven_of_Nine - 10.05.2011, 13:44

Forum Jump:


Users browsing this thread: 2 Guest(s)