SA-MP Forums Archive
AMX to PWN - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: AMX to PWN (/showthread.php?tid=515582)



AMX to PWN - VladimirMark - 26.05.2014

Ok so I used this crappy DeAMX and it converted my file with somehow some success but when I see the code It's so strange, can anyone help me? :/
pawn Код:
#include <a_samp>
#include <core>
#include <float>


public OnPlayerConnect(playerid)
{
    Streamer_CallbackHook(0, playerid);
    return Streamer_OnPlayerConnect(playerid);
}

public OnPlayerDisconnect(playerid, reason)
{
    Streamer_CallbackHook(1, playerid, reason);
    return 1;
}

public OnPlayerEditObject(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
{
    if(arg1)
    {
        Streamer_CallbackHook(2, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
    }
    return 1;
}

public OnPlayerSelectObject(arg0, arg1, arg2, arg3, arg4, arg5, arg6)
{
    if(arg1 == 2)
    {
        Streamer_CallbackHook(3, arg0, arg1, arg2, arg3, arg4, arg5, arg6);
    }
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    Streamer_CallbackHook(4, playerid, pickupid);
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    Streamer_CallbackHook(5, playerid);
    return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
    Streamer_CallbackHook(6, playerid);
    return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
    Streamer_CallbackHook(7, playerid);
    return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
    Streamer_CallbackHook(8, playerid);
    return 1;
}

public OnFilterScriptExit()
{
    for(new var0 = 0; var0 < 500; var0++)
    {
        if(GetPlayerVirtualWorld(var0) || GetPlayerInterior(var0))
        {
            TogglePlayerControllable(var0, false);
        }
    }
    return 0;
}

public OnFilterScriptInit()
{
    for(new var0 = 0; var0 < 500; var0++)
    {
        if(GetPlayerVirtualWorld(var0) || GetPlayerInterior(var0))
        {
            TogglePlayerControllable(var0, false);
        }
    }
    CreateDynamicObject(1280, 1161261670, 3301112136, 1084143698, 0, 0, 1126384927, 4294967295, 4294967295, 4294967295, 1132068864);
.........................................(MAPS).................
return 1;
}
Can anyone help me find those "arg" and "var" and so on?
Please


Re: AMX to PWN - VladimirMark - 26.05.2014

Sounds hard to me to do :/


Re: AMX to PWN - BleverCastard - 26.05.2014

Should have backed it up.


Re: AMX to PWN - Yves - 26.05.2014

They is no way you going to get that back from a AMX format.


Re: AMX to PWN - AiRaLoKa - 27.05.2014

well thats better...
you still got some of your script, when i lost my gamemode, the last thing is the .amx file, when i try to decompile it, i only have these line :/
pawn Код:
#include <a_samp>
#include <core>
#include <float>



Re: AMX to PWN - Jankingston - 27.05.2014

If anyone wants to make .pwn out of .amx, No solutions for it. DeMax is crap(As it dosen't give correct script though), it dosen't work. You should have backup your gamemode.


Re: AMX to PWN - VladimirMark - 27.05.2014

Okey, thanks anyway for your time