SA-MP Forums Archive
/getdrugs.. - 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: /getdrugs.. (/showthread.php?tid=463309)



/getdrugs.. - dino_d_carter - 11.09.2013

Hey i have a command on /getdrugs and a command /ldrugs (leave drugs) and now when player leave drugs on a loaction how can i add so player gets +10g drugs right now i have typed in this :
Код:
PlayerInfo[playerid][pInTDrugs] ++;
but i want to change that on some way so he gets +10g or somthing like that now he only gets 1+


Re: /getdrugs.. - [HK]Ryder[AN] - 11.09.2013

pawn Код:
PlayerInfo[playerid][pInTDrugs] = PlayerInfo[playerid][pInTDrugs] + 10;
Try using this


Re: /getdrugs.. - BigGroter - 11.09.2013

pawn Код:
PlayerInfo[playerid][pInTDrugs] += 10;



Re: /getdrugs.. - dino_d_carter - 11.09.2013

Quote:
Originally Posted by [HK]Ryder[AN]
Посмотреть сообщение
pawn Код:
PlayerInfo[playerid][pInTDrugs] = PlayerInfo[playerid][pInTDrugs] + 10;
Try using this
It works thanks man!