+ To Variable
#1

Hello.


How to add "more" to a variable, example:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == test)
{
testvariable[playerid] = 0; // How to set here so when you enter the pickup,
it adds "+1" to the variable without using "testvariable[playerid] = 1;"
So, if you come in the pickup twice, it sets it to "testvariable[playerid] = 2;", if you come in the pickup three times, it sets it to
testvariable[playerid] = 3;, and so on. So, how to?
}

Regards,
Assyria
Reply


Messages In This Thread
+ To Variable - by Assyria - 27.04.2010, 16:59
Re: + To Variable - by ¤Adas¤ - 27.04.2010, 17:02
Re: + To Variable - by saiberfun - 27.04.2010, 17:03
Re: + To Variable - by Assyria - 27.04.2010, 17:05
Re: + To Variable - by Jochemd - 27.04.2010, 17:07
Re: + To Variable - by DeathOnaStick - 27.04.2010, 17:08
Re: + To Variable - by Assyria - 27.04.2010, 17:09

Forum Jump:


Users browsing this thread: 1 Guest(s)