Volt-Host Crash Command.
#1

Hey,

You may have seen my command on my other post but for some reason Volt-Host doesnt like my command:
pawn Код:
CMD:ar(playerid,params[])
{
    new string[128], reportid;
    if(sscanf(params, "d", reportid)) return SendClientMessageEx(playerid,COLOR_WHITE,"USAGE: /ar [reportid]");
    if(reportid < 0 || reportid > 999) { SendClientMessageEx(playerid,COLOR_GREY," Report ID not below 0 or above 999"); return 1; }
    if(Reports[reportid][BeingUsed] == 0)
    {
        SendClientMessageEx(playerid,COLOR_GREY,"That report ID is not being used!");
        return 1;
    }
    if(!IsPlayerConnected(Reports[reportid][ReportFrom]))
    {
        SendClientMessageEx(playerid,COLOR_GREY,"The reporter has disconnected!");
        Reports[reportid][ReportFrom] = 999;
        Reports[reportid][BeingUsed] = 0;
        return 1;
    }
    format(string,sizeof(string),"%s has accept the report from %s (ID:%i,RID: %i).", GetPlayerNameEx(playerid), GetPlayerNameEx(Reports[reportid][ReportFrom],Reports[reportid],[ReportFrom],reportid);
    ABroadCast(COLOR_ORANGE,string,2);
    PlayerInfo[playerid][pAcceptReport]++;
    Reports[reportid][ReplyTimerr] = SetTimerEx("ReplyTimer",30000,0,"d",reportid);
    Reports[reportid][CheckingReport] = playerid;
    Reports[reportid][BeingUsed] = 0;
    Reports[reportid][TimeToExpire] = 0;
    strmid(Reports[reportid][Report],"None",0,4,4);
    }
    return 1;
}
As when someone types that command it bugs and crashes before the string format, How can i stop this?

Thanks
Reply


Messages In This Thread
Volt-Host Crash Command. - by LS-Servers Scripting - 12.11.2011, 20:14
Re: Volt-Host Crash Command. - by IstuntmanI - 12.11.2011, 20:19
Re: Volt-Host Crash Command. - by LS-Servers Scripting - 12.11.2011, 20:38
Re: Volt-Host Crash Command. - by GangsTa_ - 12.11.2011, 21:51
Re: Volt-Host Crash Command. - by LS-Servers Scripting - 13.11.2011, 00:07
Re: Volt-Host Crash Command. - by Calgon - 13.11.2011, 00:11

Forum Jump:


Users browsing this thread: 2 Guest(s)