AMX to PWN
#1

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
Reply
#2

Sounds hard to me to do :/
Reply
#3

Should have backed it up.
Reply
#4

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

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>
Reply
#6

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.
Reply
#7

Okey, thanks anyway for your time
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)