[Ajuda] Comando executa mas da erro.
#2

Quote:

if(strcmp(cmd, "/moto", true) == 0)
{
new Float:X,Float:Y,Float:Z,Float:A;
if(Player[playerid][pMtx] < 1)return SendClientMessage(playerid, COR_ERRO, "ERRO: Vocк nгo tem permissгo para usar este comando!");
if(VeiculoVeh[playerid] >=1 )return SendClientMessage(playerid, COR_ERRO,"[ERRO]: Vocк jб tem um veнculo criado, digite '/dcm' para pode criar outro veнculo.");
GetPlayerPos(playerid, X, Y, Z);
VeiculoVeh[playerid]=1;
GetPlayerFacingAngle(playerid, A);
VeiculoVeh[playerid] = CreateVehicle(581, X, Y, Z, A, -1, -1, 30000);
PutPlayerInVehicle(playerid, VeiculoVeh[playerid], 0);
SendClientMessage(playerid, COR_PRINCIPAL, "» Vocк criou um veнculo, lembre-se de deleta-lo (/dc, /dcm).");
new string2[280];
format(string2, sizeof(string2), "** Moto Taxi %s criou uma moto.", getPName(playerid));
MensagemLocal(playerid, COR_ROXO, string2, 60);
return 1;
}

Testa ai.
Reply


Messages In This Thread
Comando executa mas da erro. - by henriqueTL - 11.03.2017, 02:54
Re: Comando executa mas da erro. - by DaRoma - 11.03.2017, 08:03
Re: Comando executa mas da erro. - by Tuznn - 11.03.2017, 14:31
Re: Comando executa mas da erro. - by henriqueTL - 11.03.2017, 17:26
Re: Comando executa mas da erro. - by JuninTJF - 11.03.2017, 17:49
Re: Comando executa mas da erro. - by henriqueTL - 11.03.2017, 18:12
Re: Comando executa mas da erro. - by Tuznn - 11.03.2017, 20:11

Forum Jump:


Users browsing this thread: 1 Guest(s)