31.03.2012, 16:15
Hi all, how to make random npc bots connects, when the server is starts?
new RandNpc[][] = { {"NpcName1","npcname1"}, {"NpcName2","npcname2"} };
new rand = random(sizeof(RandNpc)); ConnectNPC(RandNpc[rand]);
Try something like
Edited Код:
new RandNpc[][] = { {"NpcName1","npcname1"}, {"NpcName2","npcname2"} }; Код:
new rand = random(sizeof(RandNpc)); ConnectNPC(RandNpc[rand]); |
error 017: undefined symbol "RandNpc" error 029: invalid expression, assumed zero warning 215: expression has no effect
new rand = random(sizeof(RandNpc));