15.01.2014, 14:42
dosent works....The error i got is
The Filterscript i changed
Код:
C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(8) : error 054: unmatched closing brace ("}") C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(10) : error 055: start of function body without function header C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(12) : error 029: invalid expression, assumed zero C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(16) : error 010: invalid function or declaration C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(18) : warning 235: public function lacks forward declaration (symbol "OnNPCDisconnect") C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(20) : warning 213: tag mismatch C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(22) : error 010: invalid function or declaration C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(29) : error 017: undefined symbol "strtok" C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(29) : error 033: array must be indexed (variable "cmd") C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(32) : error 017: undefined symbol "Fbi_Guard_1" C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(33) : error 017: undefined symbol "Hospital_Guard_1" C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(35) : error 017: undefined symbol "SSCANF_Join" C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(36) : error 017: undefined symbol "SSCANF_Join" C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(42) : warning 225: unreachable code C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(42) : warning 217: loose indentation C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(42) : error 029: invalid expression, assumed zero C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(42) : error 004: function "OnFilterScriptExit" is not implemented C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(28) : warning 203: symbol is never used: "idx" C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(28 -- 47) : error 036: empty statement C:\Users\aa\Desktop\RGRP\filterscripts\npc_loader.pwn(28 -- 47) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 15 Errors.
The Filterscript i changed
Код:
// NPC Loader Of Drifter/Tony Peterson RGRP // // Own Made For Server Testing // #include <a_samp> #include <a_npc> #define 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"); return 1; public OnFilterScriptExit() } return 0; } main()