if(strcmp(cmdtext, "/carro", true) == 0)
return ShowPlayerDialog(playerid,351,DIALOG_STYLE_INPUT,"Sistema de Veiculo","Digite o ID Do Carro Desejado.","Criar","Cancelar");
if(dialogid == 351)
{
if(response)
{
if((400 > strval(inputtext) > 611) || strval(inputtext) == 425 || strval(inputtext) == 432 || strval(inputtext) == 520) return SendClientMessage(playerid, -1, "ID invalido!");
new Float:pharrel[3];
GetPlayerPos(playerid, pharrel[0], pharrel[1], pharrel[2]);
pharrel[0] = float(CreateVehicle(strval(inputtext), pharrel[0], pharrel[1], pharrel[2], 0, 0, 0, 999999));
PutPlayerInVehicle(playerid, floatround(pharrel[0]), 0);
return 1;
}
}
Carro[MAX_PLAYERS];
if((400 > strval(inputtext) > 611) || strval(inputtext) == 425 || strval(inputtext) == 432 || strval(inputtext) == 520) return SendClientMessage(playerid, -1, "ID invalido!");
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
Carro[playerid] = CreateVehicle(strval(inputtext), pos[0], pos], pos[2], 0, 0, 0, 999999));
PutPlayerInVehicle(playerid, Carro[playerid], 0);
return 1;
DestroyVehicle(playerid, Carro[playerid]);
if (strcmp("/destruircarro", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, CorCinza, "Vocк Nгo Estб em Um Carro.");
new VeiculoID = GetPlayerVehicleID(playerid);
DestroyVehicle(VeiculoID);
format(Celula, sizeof(Celula), "-OperServ-{2641FE}O Administrador {33FF00}%s{2641FE} Destruiu o Veiculo ID [ {33FF00}%d{2641FE} ]. ", PlayerName(playerid), VeiculoID);
MensagemAdmins(0x2641FEAA, Celula);
return 1;
}
return 0;
}
Topo:
pawn Код:
pawn Код:
pawn Код:
|
public OnPlayerExitVehicle(playerid, vehicleid);
{
if(vehicleid == Carro[playerid]) return DestroyVehicle(Carro[playerid]);
return 1;
}
H:\FUCTION SERVER\gamemodes\ftn.pwn(2887) : error 055: start of function body without function header H:\FUCTION SERVER\gamemodes\ftn.pwn(288 : error 010: invalid function or declaration H:\FUCTION SERVER\gamemodes\ftn.pwn(2889) : error 010: invalid function or declaration H:\FUCTION SERVER\gamemodes\ftn.pwn(2900) : error 035: argument type mismatch (argument 3) H:\FUCTION SERVER\gamemodes\ftn.pwn(2900) : error 029: invalid expression, assumed zero H:\FUCTION SERVER\gamemodes\ftn.pwn(2900) : error 029: invalid expression, assumed zero H:\FUCTION SERVER\gamemodes\ftn.pwn(2900) : fatal error 107: too many error messages on one line |
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
Carro[playerid] = CreateVehicle(strval(inputtext), pos[0], pos], pos[2], 0, 0, 0, 999999));