how to add more then 1? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to add more then 1? (
/showthread.php?tid=143147)
how to add more then 1? -
hardstop - 21.04.2010
Like i added this to shop
PlayerInfo[playerid][pWood] = 1;
how can you buy more then 1 wood because when i buy its still 1 and 1 and 1
Re: how to add more then 1? -
Correlli - 21.04.2010
pawn Код:
PlayerInfo[playerid][pWood] += 1;
or:
pawn Код:
PlayerInfo[playerid][pWood]++;
or:
pawn Код:
PlayerInfo[playerid][pWood] = PlayerInfo[playerid][pWood] + 1;
Re: how to add more then 1? -
hardstop - 21.04.2010
Thnx