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)
new option[32];
Would be awesome if you tell to us which lines are giving these erro's.
|
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7897) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7905) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7913) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7921) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7929) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7937) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7945) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7953) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7961) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7969) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7977) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7985) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(7993) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(8001) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(8009) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(8017) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(8025) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(8033) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(8041) : warning 213: tag mismatch
C:\Users\sean mcelholm\Desktop\SAN-RP Scripting - PRIVATE\gamemodes\dw-rp.pwn(8049) : warning 213: tag mismatch
else if(!strcmp(option, "majestic", false))