error 017: undefined symbol "randomEx"
#3

Quote:
Originally Posted by Squirrel
Посмотреть сообщение
I am trying to make random drug system but it keeps failing

Код:
CMD:test(playerid, params[])
{
    new drugs = randomEx(1,10);
	new string[128];
	format(string, sizeof(string), "You received %d drugs", drugs);
	SendClientMessage(playerid, COLOR_YELLOW, string);
	PlayerInfo[playerid][pWeed] = drugs;
	return 1;
}
Код:
error 017: undefined symbol "randomEx"
#define randomEx(%1,%2) (random(%2-%1)+%1)
Reply


Messages In This Thread
error 017: undefined symbol "randomEx" - by Squirrel - 23.03.2013, 01:00
Re: error 017: undefined symbol "randomEx" - by Squirrel - 23.03.2013, 01:12
Re: error 017: undefined symbol "randomEx" - by DimaShift - 22.05.2017, 18:55
Re: error 017: undefined symbol "randomEx" - by YouHack - 22.05.2017, 19:32
Re: error 017: undefined symbol "randomEx" - by DTV - 22.05.2017, 20:14
Re: error 017: undefined symbol "randomEx" - by YouHack - 22.05.2017, 20:32

Forum Jump:


Users browsing this thread: 3 Guest(s)