CMD:v(playerid, params[])
{
if(PlayerInMiniGame[playerid] != MINIGAME_NONE) return SendClientMessage(playerid, 0xFF4500FF, "Estб em um minijogo, use /sair");
if(IsPlayerInRace) return SendClientMessage(playerid, 0xFF4500FF, "Esta em uma corrida, use /exitrace");
ShowTextDrawDialog(playerid, DIALOG_VID, "ISSOeGTA FR 2013x .. Veiculos", "Ok", "Cancelar", "\
Esportivos e elegantes", "Motos e Bicicletas", "Caminhonetes", "Avioes e Helicopteros", "Aquaticos", "Servico publico", "Industriais", "Carros variados", "Caminhoes", "Veiculos unicos", "Veiculos RC");
return 1;
}
new xCarroCriado[MAX_PLAYERS];
CMD:v(playerid, params[]) { static carro, Float:X, Float:Y, Float:Z, xCor, xCor2, Float:Angle; if(sscanf(params, "ddd", carro, xCor, xCor2)) return SendClientMessage(playerid, -1, "/v [id carro] [cor1] [cor2]."); if(carro < 400 || carro > 611) return SendClientMessage(playerid, -1, "ID invбlido, de 400 a 611 apenas"); if(xCor < 0 || xCor > 255) return SendClientMessage(playerid, -1, "ID invбlido cor de 1 a 255."); if(xCor2 < 0 || xCor2 > 255) return SendClientMessage(playerid, -1, "ID invбlido cor de 1 a 255."); if(xCarroCriado[playerid] != 0) DestroyVehicle(xCarroCriado[playerid]); GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, Angle); xCarroCriado[playerid] = AddStaticVehicleEx(carro, X, Y, Z, Angle, xCor, xCor2, -1); PutPlayerInVehicle(playerid, xCarroCriado[playerid], 0); return 1; }
Topo do gamemode
Код:
new xCarroCriado[MAX_PLAYERS]; Код:
CMD:v(playerid, params[]) { static carro, Float:X, Float:Y, Float:Z, xCor, xCor2, Float:Angle; if(sscanf(params, "ddd", carro, xCor, xCor2)) return SendClientMessage(playerid, -1, "/v [id carro] [cor1] [cor2]."); if(carro < 400 || carro > 611) return SendClientMessage(playerid, -1, "ID invбlido, de 400 a 611 apenas"); if(xCor < 0 || xCor > 255) return SendClientMessage(playerid, -1, "ID invбlido cor de 1 a 255."); if(xCor2 < 0 || xCor2 > 255) return SendClientMessage(playerid, -1, "ID invбlido cor de 1 a 255."); if(xCarroCriado[playerid] != 0) DestroyVehicle(xCarroCriado[playerid]); GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, Angle); xCarroCriado[playerid] = AddStaticVehicleEx(carro, X, Y, Z, Angle, xCor, xCor2, -1); PutPlayerInVehicle(playerid, xCarroCriado[playerid], 0); return 1; } |
CMD:v(playerid, params[])
{
static carro, Float:X, Float:Y, Float:Z, xCor, xCor2, Float:Angle;
if(PlayerInMiniGame[playerid] != MINIGAME_NONE) return SendClientMessage(playerid, 0xFF4500FF, "Estб em um minijogo, use /sair");
if(IsPlayerInRace) return SendClientMessage(playerid, 0xFF4500FF, "Estб em uma corrida, use /exitrace");
ShowTextDrawDialog(playerid, DIALOG_VID, "ISSOeGTA FR 2013x .. Veiculos", "Ok", "Cancelar", "\
Esportivos e elegantes", "Motos e Bicicletas", "Caminhonetes", "Avioes e Helicopteros", "Aquaticos", "Servico publico", "Industriais", "Carros variados", "Caminhoes", "Veiculos unicos", "Veiculos RC");
if(xCarroCriado[playerid] != 0) DestroyVehicle(xCarroCriado[playerid]);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
xCarroCriado[playerid] = AddStaticVehicleEx(carro, X, Y, Z, Angle, xCor, xCor2, -1);
PutPlayerInVehicle(playerid, xCarroCriado[playerid], 0);
return 1;
}
CMD:v(playerid, params[])
{
static carro, Float:X, Float:Y, Float:Z, xCor, xCor2, Float:Angle;
if(PlayerInMiniGame[playerid] != MINIGAME_NONE) return SendClientMessage(playerid, 0xFF4500FF, "Estб em um minijogo, use /sair");
if(IsPlayerInRace) return SendClientMessage(playerid, 0xFF4500FF, "Estб em uma corrida, use /exitrace");
ShowTextDrawDialog(playerid, DIALOG_VID, "ISSOeGTA FR 2013x .. Veiculos", "Ok", "Cancelar", "\
Esportivos e elegantes", "Motos e Bicicletas", "Caminhonetes", "Avioes e Helicopteros", "Aquaticos", "Servico publico", "Industriais", "Carros variados", "Caminhoes", "Veiculos unicos", "Veiculos RC");
if(xCarroCriado[playerid] != 0) DestroyVehicle(xCarroCriado[playerid]);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
xCarroCriado[playerid] = AddStaticVehicleEx(carro, X, Y, Z, Angle, xCor, xCor2, -1);
PutPlayerInVehicle(playerid, xCarroCriado[playerid], 0);
return 1;
}
PHP код:
|
C:\Users\GUILHERME\Downloads\ISSOeGTA FreeRoam\gamemodes\IEGTA.pwn(18362) : error 017: undefined symbol "Pos" C:\Users\GUILHERME\Downloads\ISSOeGTA FreeRoam\gamemodes\IEGTA.pwn(18362) : warning 215: expression has no effect C:\Users\GUILHERME\Downloads\ISSOeGTA FreeRoam\gamemodes\IEGTA.pwn(18362) : error 001: expected token: ";", but found "]" C:\Users\GUILHERME\Downloads\ISSOeGTA FreeRoam\gamemodes\IEGTA.pwn(18362) : error 029: invalid expression, assumed zero C:\Users\GUILHERME\Downloads\ISSOeGTA FreeRoam\gamemodes\IEGTA.pwn(18362) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.