// Number Plate Change FIlterscript by [TT]Anonymous
// Any bugs? Please inform me.
#define FILTERSCRIPT
#include <a_samp>
#include <streamer>
#define COLOR_YELLOW 0xFF00FFAA // Yellow
#define COLOR_RED 0xFF0000AA // Red
#define DIALOG_NPCHANGE 99312
#if defined FILTERSCRIPT
new vID = GetPlayerVehicleID(playerid);
new NumbPlateChange;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Number Plate Changer by [TT]Anonymous");
print " Filterscript has been loaded.");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
print(" Filterscript has been unloaded.");
return 1;
}
public OnPlayerSpawn(playerid)
{
NumbPlateChange = CreateDynamicCP(-1928.4941, 276.5805, 41.0469, 4, -1, -1, -1, 100);
return 1;
}
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == NumbPlateChange)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "ERROR: You must be in a vehicle.");
else
{
ShowPlayerDialog(playerid, DIALOG_NPCHANGE, DIALOG_STYLE_INPUT, "{FFFFFF}Change your vehicle number plate","{FFFFFF}Please enter your desired text for your vehicle number plate.","Set","Cancel");
}
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new string[128];
if(dialogid == DIALOG_NPCHANGE)
{
if(response)
{
SetVehicleNumberPlate(vID, inputtext);
format(string,sizeof(string),"Your vehicle number plate has been set to: %s",inputtext);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
else
{
SendClientMessage(playerid, COLOR_RED, "ERROR: You have cancelled.");
}
}
return 1;
}
#endif
This actully dont depants on your code's extra ... this is actully the problem of pawno / try to install " .net framework" it will be fixed if not then download a new game mode from forum then replace the pawno folder with your SERVER folder... FIXED :
ahh .. You'rr kidding me ? what for serveR_log ? it has no conection with that lol |
The availability of AMX and PWN file in filterscripts folder, both of them exist but when I try to load them, the server system window crashes and even when I tried to load in with RCON command while in-game, the same thing happened. So please, someone, help me. Oh and yes, if you found any mistakes in my script, please fix them. Correcting mistakes is caring. |
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3e, ©2005-2012 SA-MP Team [23:22:31] [23:22:31] Server Plugins [23:22:31] -------------- [23:22:31] Loading plugin: streamer [23:22:31] *** Streamer Plugin v2.6.1 by Incognito loaded *** [23:22:31] Loaded. [23:22:31] Loading plugin: sscanf [23:22:31] [23:22:31] =============================== [23:22:31] sscanf plugin loaded. [23:22:31] © 2009 Alex "******" Cole [23:22:31] 0.3d-R2 500 Players "dnee" [23:22:31] =============================== [23:22:31] Loaded. [23:22:31] Loading plugin: Whirlpool [23:22:31] [23:22:31] ================== [23:22:31] [23:22:31] Whirlpool loaded [23:22:31] [23:22:31] ================== [23:22:31] [23:22:31] Loaded. [23:22:31] Loaded 3 plugins. [23:22:32] [23:22:32] Filterscripts [23:22:32] --------------- [23:22:32] Loading filterscript 'wnimitz.amx'... [23:22:32] ------------------------------------------ [23:22:32] [23:22:32] USS Nimitz filterscript has been loaded! [23:22:32] [23:22:32] ------------------------------------------ [23:22:32] Loading filterscript 'attachments.amx'... [23:22:32] Loading filterscript 'LuxAdmin.amx'... [23:22:32] ___________________________________________________ [23:22:32] [23:22:32] L.A.S v1.6 Beta [23:22:32] --------------- [23:22:32] LuX Administration System [23:22:32] ___________________________________________________ [23:22:32] -> Loading... [23:22:32] -Current Configurations Successfully Loaded! [23:22:32] [23:22:32] -> L.A.S Basic Loaded Configurations: [23:22:32] AutoLogin: [Enabled!] ReadCmds: [Enabled!] [23:22:32] AntiSwear: [Disabled] AntiSpam: [Enabled!] [23:22:32] NameKick: [Enabled!] AntiBot: [Enabled!] [23:22:32] ConnectMsgs: [Enabled!] NoCaps: [Disabled] [23:22:32] AdminCmdMsgs: [Enabled!] Anti Ads: [Enabled!] [23:22:32] SaveMoney: [Enabled!] MustLogin [Enabled!] [23:22:32] Forbid Weaps: [Disabled] AdmSkins: [Disabled] [23:22:32] ReadPms: [Enabled!] MaxLevel: [10] [23:22:32] SaveWeaps [Enabled!] Max Ping: [0ms] [23:22:32] ChatDisabled: [Disabled] MuteWarns: [4] [23:22:32] MustRegister: [Enabled!] AdmSkins [217, 214] [23:22:32] -> Loaded Successfully! [23:22:32] Date: 8/7/2012 - Time: 23:22:32 [23:22:32] ___________________________________________________ [23:22:32] Loading filterscript 'Numberplate.amx'... [23:22:32] Failed to load 'filterscripts/Numberplate.amx.amx' filterscript. [23:22:32] Unable to load filterscript 'Numberplate.amx'. [23:22:32] Loaded 3 filterscripts.
[23:22:32] Loading filterscript 'Numberplate.amx'... [23:22:32] Failed to load 'filterscripts/Numberplate.amx.amx' filterscript. [23:22:32] Unable to load filterscript 'Numberplate.amx'. [23:22:32] Loaded 3 filterscripts. |
Something is wrong with your fs. PM your filterscript so i can see what is wrong ok?
|
Nvm. My friend helped me out, thanks for you guys, trying to help me! Rep+ given.
|
My pawno also crashed cuz one } is missing so i thought he can pm me his fs so i can check "{" and "}". Get it now?
|
new vID = GetPlayerVehicleID(playerid);
public OnPlayerSpawn(playerid)
{
NumbPlateChange = CreateDynamicCP(-1928.4941, 276.5805, 41.0469, 4, -1, -1, -1, 100);
return 1;
}