14.12.2009, 01:57
Ok, So I have a command to enter my npc's into the game, as ConnectNPC(); Works flawlessly, my one problem is, how do I make them leave when I type /endnpc. Do I use kick(); or DisconnectNPC();?
if (PlayerIsNPC(playerid)) { Kick(playerid; }
#define KickAllNPCs() for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerNPC(i)) Kick(i);
if (strcmp("/endnpc", cmdtext, true, 10) ==0) { if (IsPlayerAdmin(playerid)) { //exit npc's KickAllNPCs(); //exit npc's } }
C:\Program Files\Rockstar Games\Newest Includes\gamemodes\NathansStuntage.pwn(264) : error 036: empty statement