10.05.2011, 12:59
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:
Still the same result :\
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;
}