20.06.2014, 10:30
pawn Код:
public OnGameModeInit()
{
new Float:a = 6.3;
new b = 5;
new c[20] = "Labas";
print(fmat("String = %s, Float = %.1f, Integer = %d", c, a, b));
return true;
}
fmat(const fmat[], va_args<>)
{
new msmg[145];
va_format(msmg, sizeof (msmg), fmat, va_start<1>);
return msmg;
}
[13:53:20] [debug] Run time error 5: "Invalid memory access"
[13:53:20] [debug] AMX backtrace:
[13:53:20] [debug] #0 00027b4c in ?? (0x010ca830, 0x010d35a8, 0x010d35fc, 0x010d35f

[13:53:20] [debug] #1 00050aa8 in public SSCANF_OnGameModeInit () from ***.amx
[13:53:20] [debug] #2 00010550 in public Itter_OnGameModeInit () from ***.amx
[13:53:20] [debug] #3 native CallLocalFunction () [00472ad0] from samp-server.exe
[13:53:20] [debug] #4 0000de08 in ?? () from ***.amx
[13:53:20] [debug] #5 00005d48 in public ScriptInit_OnGameModeInit () from ****.amx
[13:53:20] [debug] #6 0000085c in public zcmd_OnGameModeInit () from ***.amx
[13:53:20] [debug] #7 native CallLocalFunction () [00472ad0] from samp-server.exe
[13:53:20] [debug] #8 00000350 in public OnGameModeInit () from ***.amx