I am bit confised here. I made this command for /buydrugs and i wrote this line.
But what this will do? Is this going to add drugs playr bought to current drug amount he have
PHP код:
PlayerInfo[playerid][pDroga] += amount
I know this sounds crazy but this came first on my mind but still don't understand what += will do

EDIT: If it won't add bought drugs to current drugs player have can someone tell me how to do that

+= will do the same as ++ but its much more better, faster and optimized.

it will get the value of pDrogo, then will add on it and then will give you the new pDroga value, in this you can add custom value.

Thank you

Forum Jump:

Users browsing this thread: 1 Guest(s)