Pawno Crashes.
#9

Quote:
Originally Posted by Kreyg
Посмотреть сообщение
you had an extra bracket

Try this

pawn Код:
CMD:windows(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid, COLOR_GREY, " This vehicle doesnt come with a window.");
            return 1;
        }
        if(VehicleWindows[GetPlayerVehicleID(playerid)] == 0)
        {
            VehicleWindows[GetPlayerVehicleID(playerid)] = 1;
            format(string, sizeof(string), "* %s rolls down the window.", GetPlayerNameEx(playerid));
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            return 1;
        }
        else if(VehicleWindows[GetPlayerVehicleID(playerid)] == 1)
        {
            VehicleWindows[GetPlayerVehicleID(playerid)] = 0;
            format(string, sizeof(string), "* %s rolls up the window.", GetPlayerNameEx(playerid));
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            return 1;
        }
        return 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "  You need to be in vehicle !");
        return 1;
    }
    return 1;
}
Its the OnPlayerText Code which is Crashing pawno, - Command works fine
Reply


Messages In This Thread
Pawno Crashes. - by Desi_Dude - 14.11.2012, 06:10
Re: Pawno Crashes. - by Plovix - 14.11.2012, 06:16
Re: Pawno Crashes. - by Desi_Dude - 14.11.2012, 06:20
Re: Pawno Crashes. - by Plovix - 14.11.2012, 06:22
Re: Pawno Crashes. - by Desi_Dude - 14.11.2012, 06:31
Re: Pawno Crashes. - by Plovix - 14.11.2012, 06:41
Re: Pawno Crashes. - by Desi_Dude - 14.11.2012, 06:45
Re: Pawno Crashes. - by Kreyg - 14.11.2012, 07:07
Re: Pawno Crashes. - by Desi_Dude - 14.11.2012, 07:47
Re: Pawno Crashes. - by Konstantinos - 14.11.2012, 09:00

Forum Jump:


Users browsing this thread: 1 Guest(s)