Error with /buycar
#1

pawn Код:
COMMAND:buycar(playerid, params[])
{
    new option;
    if(sscanf(params, "s[32]", option))
    {
        SendClientMessage(playerid, COLOUR_WHITE, "{3CCA75}[{FFFFFF}Usage{3CCA75}]{FFFFFF} /buycar [option]");
        if(IsPlayerInRangeOfPoint(playerid, 30, 541.0433,-1292.9916,17.2422))
        {
            SendClientMessage(playerid, COLOUR_LIGHTYELLOW, "Stallion - Ј300000, Majestic -  Ј350000, Sultan, Ј400000, Premier - Ј200000");
            SendClientMessage(playerid, COLOUR_LIGHTYELLOW, "Huntley - Ј250000, Feltzer -  Ј440000");
        }
        else if(IsPlayerInRangeOfPoint(playerid, 30, 541.0433,-1292.9916,17.2422))
        {
            SendClientMessage(playerid, COLOUR_LIGHTYELLOW, "Moonbeam - Ј18000, Perrenal -  Ј14000, Regina, Ј13000, Rancher - Ј12000");
            SendClientMessage(playerid, COLOUR_LIGHTYELLOW, "Glendale - Ј16000, Sentinel -  Ј15000");
        }
        else if(IsPlayerInRangeOfPoint(playerid, 30, 541.0433,-1292.9916,17.2422))
        {
            SendClientMessage(playerid, COLOUR_LIGHTYELLOW, "Bobcat -  Ј4000, Picador, Ј3000, Sadler - Ј6000");
            SendClientMessage(playerid, COLOUR_LIGHTYELLOW, "Walton - Ј2000");
        }
        else
        {
            SendClientMessage(playerid, COLOUR_LIGHTYELLOW, "You are not at a car dealership.");
        }
        return 1;
    }
    if(!strcmp(option, "stallion", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 541.0433,-1292.9916,17.2422))
        {
            CreatePrivateVehicle(playerid, 439, 538.9616, -1272.9244, 16.9586, 37.9800, 0, 0);
            SetPlayerCash(playerid, -300000);
        }
    }
    else if(!strcmp(option, "majestic", false) == 0)//line 7905
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 541.0433,-1292.9916,17.2422))
        {
            CreatePrivateVehicle(playerid, 517, 538.9616, -1272.9244, 16.9586, 37.9800, 0, 0);
            SetPlayerCash(playerid, -350000);
        }
    }
    else if(!strcmp(option, "sultan", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 541.0433,-1292.9916,17.2422))
        {
            CreatePrivateVehicle(playerid, 560, 538.9616, -1272.9244, 16.9586, 37.9800, 0, 0);
            SetPlayerCash(playerid, -400000);
        }
    }
    else if(!strcmp(option, "premier", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 541.0433,-1292.9916,17.2422))
        {
            CreatePrivateVehicle(playerid, 426, 538.9616, -1272.9244, 16.9586, 37.9800, 0, 0);
            SetPlayerCash(playerid, -200000);
        }
    }
    else if(!strcmp(option, "huntley", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 541.0433,-1292.9916,17.2422))
        {
            CreatePrivateVehicle(playerid, 579, 538.9616, -1272.9244, 16.9586, 37.9800, 0, 0);
            SetPlayerCash(playerid, -250000);
        }
    }
    else if(!strcmp(option, "feltzer", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 541.0433,-1292.9916,17.2422))
        {
            CreatePrivateVehicle(playerid, 579, 538.9616, -1272.9244, 16.9586, 37.9800, 0, 0);
            SetPlayerCash(playerid, -440000);
        }
    }
    else if(!strcmp(option, "moonbeam", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 2131.6960,-1150.4136,24.1587))
        {
            CreatePrivateVehicle(playerid, 418,  2121.5994, -1156.7441, 23.7490, 37.9800, 0, 0);
            SetPlayerCash(playerid, -18000);
        }
    }
    else if(!strcmp(option, "perrenal", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 2131.6960,-1150.4136,24.1587))
        {
            CreatePrivateVehicle(playerid, 404, 538.9616, -1272.9244, 16.9586, 37.9800, 0, 0);
            SetPlayerCash(playerid, -14000);
        }
    }
    else if(!strcmp(option, "regina", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 2131.6960,-1150.4136,24.1587))
        {
            CreatePrivateVehicle(playerid, 479, 538.9616, -1272.9244, 16.9586, 37.9800, 0, 0);
            SetPlayerCash(playerid, -13000);
        }
    }
    else if(!strcmp(option, "rancher", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 2131.6960,-1150.4136,24.1587))
        {
            CreatePrivateVehicle(playerid, 489, 538.9616, -1272.9244, 16.9586, 37.9800, 0, 0);
            SetPlayerCash(playerid, -12000);
        }
    }
    else if(!strcmp(option, "glendale", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 2131.6960,-1150.4136,24.1587))
        {
            CreatePrivateVehicle(playerid, 466, 538.9616, -1272.9244, 16.9586, 37.9800, 0, 0);
            SetPlayerCash(playerid, -16000);
        }
    }
    else if(!strcmp(option, "sentinel", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 2131.6960,-1150.4136,24.1587))
        {
            CreatePrivateVehicle(playerid, modelid, Float: x, Float: y, Float: z, Float: angle, color1, color2)
            CreatePrivateVehicle(playerid, 405, 538.9616, -1272.9244, 16.9586, 37.9800, 0, 0);
            SetPlayerCash(playerid, -15000);
        }
    }
    else if(!strcmp(option, "sultan", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 541.0433,-1292.9916,17.2422))
        {
            CreatePrivateVehicle(playerid, 560, 538.9616, -1272.9244, 16.9586, 37.9800, 0, 0);
            SetPlayerCash(playerid, -400000);
        }
    }
    else if(!strcmp(option, "premier", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 541.0433,-1292.9916,17.2422))
        {
            CreatePrivateVehicle(playerid, 426, 538.9616, -1272.9244, 16.9586, 37.9800, 0, 0);
            SetPlayerCash(playerid, -200000);
        }
    }
    else if(!strcmp(option, "huntley", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 541.0433,-1292.9916,17.2422))
        {
            CreatePrivateVehicle(playerid, 579, 538.9616, -1272.9244, 16.9586, 37.9800, 0, 0);
            SetPlayerCash(playerid, -250000);
        }
    }
    else if(!strcmp(option, "feltzer", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 541.0433,-1292.9916,17.2422))
        {
            CreatePrivateVehicle(playerid, 579, 538.9616, -1272.9244, 16.9586, 37.9800, 0, 0);
            SetPlayerCash(playerid, -440000);
        }
    }
    else if(!strcmp(option, "bobcat", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 2131.6960,-1150.4136,24.1587))
        {
            CreatePrivateVehicle(playerid, 422,  2121.5994, -1156.7441, 23.7490, 37.9800, 0, 0);
            SetPlayerCash(playerid, -4000);
        }
    }
    else if(!strcmp(option, "picador", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 2131.6960,-1150.4136,24.1587))
        {
            CreatePrivateVehicle(playerid, 600,  2121.5994, -1156.7441, 23.7490, 37.9800, 0, 0);
            SetPlayerCash(playerid, -3000);
        }
    }
    else if(!strcmp(option, "sadler", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 2131.6960,-1150.4136,24.1587))
        {
            CreatePrivateVehicle(playerid, 543,  2121.5994, -1156.7441, 23.7490, 37.9800, 0, 0);
            SetPlayerCash(playerid, -6000);
        }
    }
    else if(!strcmp(option, "walton", false) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, 2131.6960,-1150.4136,24.1587))
        {
            CreatePrivateVehicle(playerid, 478,  2121.5994, -1156.7441, 23.7490, 37.9800, 0, 0);
            SetPlayerCash(playerid, -2000);
        }
    }
    return 1;
}
Код:
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7897) : error 035: argument type mismatch (argument 1)
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7905) : error 035: argument type mismatch (argument 1)
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7913) : error 035: argument type mismatch (argument 1)
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7921) : error 035: argument type mismatch (argument 1)
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7929) : error 035: argument type mismatch (argument 1)
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7937) : error 035: argument type mismatch (argument 1)
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7945) : error 035: argument type mismatch (argument 1)
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7953) : error 035: argument type mismatch (argument 1)
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7961) : error 035: argument type mismatch (argument 1)
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7969) : error 035: argument type mismatch (argument 1)
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7977) : error 035: argument type mismatch (argument 1)
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7985) : error 035: argument type mismatch (argument 1)
Reply


Messages In This Thread
Error with /buycar - by seanny - 02.07.2012, 18:58
Respuesta: Error with /buycar - by [DOG]irinel1996 - 02.07.2012, 19:04
Re: Respuesta: Error with /buycar - by seanny - 02.07.2012, 19:04
Re: Error with /buycar - by leonardo1434 - 02.07.2012, 19:07
Re: Error with /buycar - by seanny - 02.07.2012, 19:08
Respuesta: Error with /buycar - by [DOG]irinel1996 - 02.07.2012, 19:10
Re: Respuesta: Error with /buycar - by seanny - 02.07.2012, 19:13
Respuesta: Error with /buycar - by [DOG]irinel1996 - 02.07.2012, 19:15
Re: Respuesta: Error with /buycar - by seanny - 02.07.2012, 19:16
Respuesta: Error with /buycar - by [DOG]irinel1996 - 02.07.2012, 19:19

Forum Jump:


Users browsing this thread: 1 Guest(s)