[HELP] PAWNO crashed after I'm trying to compile
#1

Hello.

When I try to compile my new script, it crashes. I don't know what's the problem because at the end, after I clicked "Cancel" on another window popped saying "Pawn Compiler Library has stopped working". Don't know what's wrong, and here's the code:

pawn Код:
// 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
Checked:
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.
Reply
#2

Please write server_log file here!
Reply
#3

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 :

Quote:
Originally Posted by RedJohn
Посмотреть сообщение
Please write server_log file here!
ahh .. You'rr kidding me ? what for serveR_log ? it has no conection with that lol
Reply
#4

Quote:
Originally Posted by мυ∂υℓ_вacнα
Посмотреть сообщение
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
Quote:

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.

Look what he typed here!
Reply
#5

Quote:
Originally Posted by RedJohn
Посмотреть сообщение
Please write server_log file here!
Код:
----------
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.
Reply
#6

Quote:

[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?
Reply
#7

Quote:
Originally Posted by RedJohn
Посмотреть сообщение
Look what he typed here!
read it carefully pal. they guy you said want to load a filterscript in game but he crashed but this guy is crashing while he try to compile his script :

On-Topic : look my upper post and try to follow it !!!

EDIT:: lol
Quote:
Originally Posted by RedJohn
Посмотреть сообщение
Something is wrong with your fs. PM your filterscript so i can see what is wrong ok?
you'rr kiddin again ? His pawno is crashing not scritps. filterscripts are ok and just 1 of it are not loading !!!
Reply
#8

Nvm. My friend helped me out, thanks for you guys, trying to help me! Rep+ given.
Reply
#9

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?
Reply
#10

Quote:
Originally Posted by Huxley
Посмотреть сообщение
Nvm. My friend helped me out, thanks for you guys, trying to help me! Rep+ given.
Quote:
Originally Posted by RedJohn
Посмотреть сообщение
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?
he said pawno fixed now.

i told him on skype how to fix it though. i found BUGS lol

1.

pawn Код:
new vID = GetPlayerVehicleID(playerid);
The playerid parameter isnt defined here. so he should write it in OnDialogResponse callback.

2.

pawn Код:
public OnPlayerSpawn(playerid)
{
    NumbPlateChange = CreateDynamicCP(-1928.4941, 276.5805, 41.0469, 4, -1, -1, -1, 100);
    return 1;
}
no need to write it in OnPlayerSpawn. Just write it in OnFilterScriptInit

lol
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)