Stock | Server crash
#1

ey all,
My server crash after use cmd.

PHP код:
GetStatusInt(int,status)
{
    new 
szString[8];
    
format(szStringsizeof(szString), "None");
    switch(int)
    {
        case 
0
        {
            if(
status == 0format(szStringsizeof(szString), "Off");
            if(
status == 1format(szStringsizeof(szString), "Unlock");
            if(
status == 2format(szStringsizeof(szString), "Close");
        }
        case 
1
        {
            if(
status == 0format(szStringsizeof(szString), "On");
            if(
status == 1format(szStringsizeof(szString), "Lock");
            if(
status == 2format(szStringsizeof(szString), "Open");
        }
        
// default: format(szString, sizeof(szString), "None");
    
}
    return 
szString;

CMD:
PHP код:

new enginelightsalarmdoorsbonnetbootobjective;
    
GetVehicleParamsEx(vehicleidenginelightsalarmdoorsbonnetbootobjective);
format(stringsizeof(string), "engine:%s - lights:%s - alarm:%s",GetStatusInt(engine,0),GetStatusInt(lights,0),GetStatusInt(alarm,0)); 
Error:
PHP код:
[debugServer crashed while executing gm.amx
[debugAMX backtrace:
[
debug#0 0029058c in GetStatusInt (int=0, status=2) at gm.pwn:5084
[debug#1 00209220 in cmd_vehpack (playerid=25, params[]=@00295c34 "") at gm.pwn:2578 
Reply


Messages In This Thread
Stock | Server crash - by MRM - 10.11.2017, 03:02
Re: Stock | Server crash - by Swankeh - 10.11.2017, 04:49

Forum Jump:


Users browsing this thread: 1 Guest(s)