[Ajuda] Nao consigo converter este comando !
#1

estou colocando este sistema de carros em minha gamemode : http://pastebin.com/BXGjp3MH
porem nao consigo converte-lo para Zcmd e Sscanf tentei mas da erro
comando :
pawn Код:
CMD:car(playerid, params[])
{
new String[128], nomecarro;
new Float:x, Float:y, Float:z;
if(sscanf(params, "s", nomecarro)) return SendClientMessage(playerid, Amarelo, "Use : /v [Nome do carro]");
new vehicle = GetVehicleModelIDFromName(nomecarro);
if(vehicle < 400 || vehicle > 611) return SendClientMessage(playerid, Vermelho, "Nome incorreto tente novamente !");
if(Veh[playerid][VehId] == -1)
{
new Float:a;
GetPlayerFacingAngle(playerid, a);
GetPlayerPos(playerid, x, y, z);
if(IsPlayerInAnyVehicle(playerid) == 1)
{
GetXYInFrontOfPlayer(playerid, x, y, 8);
}
else
{
GetXYInFrontOfPlayer(playerid, x, y, 5);
}
new PlayersVehicle = CreateVehicle(vehicle, x, y, z, a+90, -1, -1, -1);
Veh[playerid][VehId] = PlayersVehicle;
LinkVehicleToInterior(PlayersVehicle, GetPlayerInterior(playerid));
}
else
{
DestroyVehicle(Veh[playerid][VehId]);
new Float:a;
GetPlayerFacingAngle(playerid, a);
GetPlayerPos(playerid, x, y, z);
if(IsPlayerInAnyVehicle(playerid) == 1)
{
GetXYInFrontOfPlayer(playerid, x, y, 8);
}
else
{
GetXYInFrontOfPlayer(playerid, x, y, 5);
}
new PlayersVehicle = CreateVehicle(vehicle, x, y, z, a+90, -1, -1, -1);
Veh[playerid][VehId] = PlayersVehicle;
LinkVehicleToInterior(PlayersVehicle, GetPlayerInterior(playerid));
}
format(String, sizeof(String), "Voce criou um : %s", aVehicleNames[vehicle - 400]);
SendClientMessage(playerid,Verde, String);
return 1;
}
esta dando este erro : error 035: argument type mismatch (argument 1)
Linha do erro : new vehicle = GetVehicleModelIDFromName(nomecarro);

alguem me ajuda a resolver este erros ? dou +rep para quem me ajudar !
Reply


Messages In This Thread
Nao consigo converter este comando ! - by zuero - 18.07.2014, 21:35
Re: Nao consigo converter este comando ! - by Don_Speed - 18.07.2014, 21:54
Re: Nao consigo converter este comando ! - by zuero - 18.07.2014, 22:01
Re: Nao consigo converter este comando ! - by zuero - 18.07.2014, 22:03
Re: Nao consigo converter este comando ! - by SkullFire - 18.07.2014, 22:31
Re: Nao consigo converter este comando ! - by zuero - 18.07.2014, 22:51
Re: Nao consigo converter este comando ! - by SkullFire - 18.07.2014, 22:59
Re: Nao consigo converter este comando ! - by zuero - 18.07.2014, 23:18
Re: Nao consigo converter este comando ! - by zuero - 19.07.2014, 00:49

Forum Jump:


Users browsing this thread: 1 Guest(s)