Format a variable++?
#5

Quote:
Originally Posted by ReVo_
Посмотреть сообщение
Example:

Код:
new val;
COMMAND:make(playerid, params[])
{
val += strval (params);
printf("new val is: %d", val);
}
everytime you do /make 1 the value of n increases of 1, if you do /make 5 and n is 5, it will increase of 5 (it will become 5+5=10)
Thanks man, Rep+
Reply


Messages In This Thread
Format a variable++? - by Lz - 11.12.2012, 17:37
Re: Format a variable++? - by ReVo_ - 11.12.2012, 17:39
Re: Format a variable++? - by Lz - 11.12.2012, 17:40
Re: Format a variable++? - by ReVo_ - 11.12.2012, 17:44
Re: Format a variable++? - by Lz - 11.12.2012, 17:48

Forum Jump:


Users browsing this thread: 1 Guest(s)