Ajuda com /cv
#1

pawn Код:
if(strcmp(cmd, "/criarveiculo", true) == 0 || strcmp(cmd, "/cv", true)==0){
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_RED, "Uso: /criarveiculo [id / veнculo] [cor1] [cor2]");
return 1;
}
new veiculo = GetVehicleModelID(tmp);
if(veiculo == -1)
{
veiculo = strval(tmp);
if(veiculo < 400 || veiculo > 611)
{
SendClientMessage(playerid, COLOR_RED, "| ERRO | Vocк sу pode criar veнculo com ID de 400 б 611");
return 1;
}
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_RED, "| INFO | Uso: /criarveiculo [id / veнculo] [cor1] [cor2]");
return 1;
}
new cor1 = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_RED, "| INFO | Uso: /criarveiculo [id / veнculo] [cor1] [cor2]");
return 1;
}
new Float:pa;
new cor2 = strval(tmp);
new Float:px, Float:py, Float:pz;
GetPlayerPos(playerid, px, py, pz);
GetPlayerFacingAngle(playerid, pa);
px += (5 * floatsin(-pa, degrees));
py += (5 * floatcos(-pa, degrees));
vehid = CreateVehicle(veiculo, px, py, pz, 0.0, cor1, cor2, 6400);
format(string, sizeof(string), "| INFO | Veнculo id: %s criado com sucesso!", Veiculos[GetVehicleModel(vehid)-400]);
SendClientMessage(playerid, COLOR_GREEN, string);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
PutPlayerInVehicle(playerid, vehid, 0);
return 1;
}
Na hora que eu digito tudo (exemplo: /cv 495 0 0) fala que o comando nгo existe,alguйm poderia me ajudar?
Reply


Messages In This Thread
Ajuda com /cv - by [GET]Vidaloka - 12.01.2011, 22:36
Re: Ajuda com /cv - by -GooGle- - 12.01.2011, 22:43
Re: Ajuda com /cv - by [GET]Vidaloka - 12.01.2011, 22:54
Re: Ajuda com /cv - by TiagoPS - 13.01.2011, 00:16

Forum Jump:


Users browsing this thread: 1 Guest(s)