12.01.2014, 05:56
I made a NPC loading filterscript fo'my server in which i test my makings but when i do /loadnpcs it niether shows the Message or the NPC loaded but the filterscript gets loaded it in Server.exe and when i type /loadnpcs in server it dosent shows anything not the Unknown Command also....Help!
I use the NPC Generator NPC Maker
Help me i want to know why it dosent work and when i change if defined filterscript to define filterscript alot of error comes
Код:
// NPC Loader Of Drifter/Tony Peterson RGRP // // Own Made For Server Testing // #include <a_samp> #include <a_npc> #if defined FILTERSCRIPT } #define COLOR_GREEN 0x33AA33AA { public OnFilterScriptInit() } print("\n--------------------------------------"); print(" NPC Loader 2014-Tony Peterson/Drifter"); print("--------------------------------------\n"); return 1; public OnNPCDisconnect(Kicked,Banned[]) { printf("Disconnected from the server. %s", Reason: (Kicked,Banned) ); } ( ConnectNPC(Fbi_Guard_1[],Fbi_Guard_1[]); ( ConnectNPC(Hospital_Guard_1[],Hospital_Guard_1[]); } public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[256]; new idx; cmd = strtok(cmdtext, idx); if (strcmp(cmd, "/loadnpcs", true) == 0) { ( ConnectNPC(Fbi_Guard_1[],Fbi_Guard_1[]); ( ConnectNPC(Hospital_Guard_1[],Hospital_Guard_1[]); } SSCANF_Join(0,Fbi_Guard_1,Fbi_Guard_1) SSCANF_Join(1,Hospital_Guard_1,Hospital_Guard_1) { SendClientMessageToAll(0x33AA33AA,NPC's Are Loaded!) SendClientMessage(playerid,0x33AA33AA,You have loaded the NPC's!) SendClientMessage(playerid,COLOR_GREEN,NPC Loaded) } public OnPlayerSpawn() { if(IsPlayerNPC(playerid)) } SetPlayerSkin(playerid,286); GivePlayerWeapon(playerid,38**,99999); return 1; { public OnFilterScriptExit() } SSCANF_Leave(0) SSCANF_Leave(1) return 1; } #else #endif
Help me i want to know why it dosent work and when i change if defined filterscript to define filterscript alot of error comes