27.04.2010, 16:59
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
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