Random
#10

Quote:
Originally Posted by TzAkS.
Посмотреть сообщение
Try something like
Edited
Код:
new RandNpc[][] = {
    {"NpcName1","npcname1"},
    {"NpcName2","npcname2"}
};
Код:
new rand = random(sizeof(RandNpc));
    ConnectNPC(RandNpc[rand]);
Not tested
Thanks, but I got error's:

Код:
error 017: undefined symbol "RandNpc"
error 029: invalid expression, assumed zero
warning 215: expression has no effect
Line:
Код:
new rand = random(sizeof(RandNpc));
Reply


Messages In This Thread
Random - by Ectazy - 31.03.2012, 16:15
Re: Random - by Randyy - 31.03.2012, 16:28
Re: Random - by captainjohn - 31.03.2012, 16:30
Re: Random - by Ectazy - 31.03.2012, 17:15
Re: Random - by Randyy - 31.03.2012, 17:18
Re: Random - by Ectazy - 31.03.2012, 17:27
Re: Random - by Ectazy - 01.04.2012, 06:33
Re: Random - by Ectazy - 02.04.2012, 07:53
Re: Random - by TzAkS. - 02.04.2012, 08:06
Re: Random - by Ectazy - 02.04.2012, 19:30

Forum Jump:


Users browsing this thread: 1 Guest(s)