#1

What is the problem here ?

I tried it like that:
PHP код:
CMD:car(playeridparams[])
{
if(
PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playeridCOLOR_RED"You can't use this command");
new 
caridcolor1color2;
new 
Float:xFloat:yFloat:z;
if(
sscanf(params"uii"caridcolor1color2)) return SendClientMessage(playeridCOLOR_WHITE"Usage: /car [id] (Color 1) (Color 2)");
if(
carid 411 && carid 611)
{
GetPlayerPos(playeridxyz);
new 
car CreateVehicle(caridxyzcolor1color2, -1);
new 
interior GetPlayerInterior(playerid);
LinkVehicleToInterior(carinterior);
new 
world GetPlayerVirtualWorld(playerid);
SetVehicleVirtualWorld(carworld);
SendClientMessage(playeridCOLOR_BROWN"Vehcile Spawned");
}
else
{
SendClientMessage(playeridCOLOR_RED"Car id can't be less than 411 or more than 611");
}
return 
1;

And like that
PHP код:
CMD:car(playeridparams[])
{
if(
PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playeridCOLOR_RED"You can't use this command");
new 
caridcolor1color2;
new 
Float:xFloat:yFloat:z;
if(
sscanf(params"uii"caridcolor1color2)) return SendClientMessage(playeridCOLOR_WHITE"Usage: /car [id] (Color 1) (Color 2)");
if(
carid 411 || carid 611) return SendClientMessag(playeridCOLOR_RED"Car is can't be less than 411 or more than 611");
GetPlayerPos(playeridxyz);
new 
car CreateVehicle(caridxyzcolor1color2, -1);
new 
interior GetPlayerInterior(playerid);
LinkVehicleToInterior(carinterior);
new 
world GetPlayerVirtualWorld(playerid);
SetVehicleVirtualWorld(carworld);
SendClientMessage(playeridCOLOR_BROWN"Vehcile Spawned");
return 
1;

And both give me this


Please help !!
Reply


Messages In This Thread
Cars - by nezo2001 - 03.01.2015, 12:27
AW: Cars - by CutX - 03.01.2015, 12:35
Re: Cars - by nezo2001 - 03.01.2015, 12:41
Re: Cars - by nezo2001 - 03.01.2015, 12:44
AW: Re: Cars - by CutX - 03.01.2015, 12:45
Re: Cars - by nezo2001 - 03.01.2015, 13:00
AW: Re: Cars - by CutX - 03.01.2015, 13:10

Forum Jump:


Users browsing this thread: 1 Guest(s)