CMD:car(playerid, params[])
{
new Veiculo[25];
if(sscanf(params, "s[25]",Veiculo)) return Msg(playerid, Vermelho, "[x]: {FFFFFF}Uso Correto: {FF0000}/Car [id/nome] ");
new bool:existe, VeiculoID;
if(!IsNumeric(Veiculo))
{
for(new r = 0;r < 212; r++)
{
if(!strcmp(Veiculo, ListaCarros[r],true))
{
existe = true;
}
if(!strcmp(Veiculo,ListaCarros[r],true)) VeiculoID = (r+400);
}
}
if(IsNumeric(Veiculo))
{
VeiculoID = strval(Veiculo);
existe = true;
if(400 < (VeiculoID) > 611) existe = false;
}
if(!existe)
{
format(String, sizeof(String), "{1E90FF}Lista Carros: {FFFFFF}O Veнculo %s nгo existe em nossa lista.", Veiculo);
Msg(playerid, cortag, String);
return 1;
}
if(VeiculoID == 520 || VeiculoID == 432 || VeiculoID == 592 || VeiculoID == 425 || VeiculoID == 464 || VeiculoID == 476 || VeiculoID == 447)
{
if(GetPlayerVirtualWorld(playerid) != 5) return Msg(playerid, Vermelho, "Somente no Mundo Mata-Mata");
}
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
CreateVehicleEx(playerid, VeiculoID, X,Y,Z+1, Angle, 152, 1, -1);
format(String, sizeof(String), "{1E90FF}Veiculo: {FFFFFF}Veнculo [%s] criado!", ListaCarros[VeiculoID-400]);
Msg(playerid, cortag, String);
LigarCarro(playerid);
return 1;
}
CMD:car(playerid, params[])
{
static
Float: x,
Float: y,
Float: z,
Float: a
;
GetPlayerPos(playerid, x, y,z);
GetPlayerFacingAngle(playerid, a);
if(!IsNumeric(params[0])){
static _f;
for(_f = 0; _f != sizeof(ListaCarros); ++_f){
if(strfind(ListaCarros[_f], params[0], trye) != -1){
CreateVehicleEx(playerid, _f + 400, x,y,z+1, a, 152, 1, -1);
break;
}
}
format(String, sizeof(String), "{1E90FF}Veiculo: {FFFFFF}Veнculo [%s] criado!", ListaCarros[_f - 400]);
return Msg(playerid, cortag, String), true;
}else{
static
VeiculoID
;
VeiculoID = strval(params[0]);
if(400 < (VeiculoID) > 611){
format(String, sizeof(String), "{1E90FF}Lista Carros: {FFFFFF}O Veнculo %s nгo existe em nossa lista.", VeiculoID);
return Msg(playerid, cortag, String);
}
CreateVehicleEx(playerid, VeiculoID + 400, x,y,z+1, a, 152, 1, -1);
format(String, sizeof(String), "{1E90FF}Veiculo: {FFFFFF}Veнculo [%s] criado!", ListaCarros[VeiculoID - 400]);
Msg(playerid, cortag, String);
}
LigarCarro(playerid);
return true;
}
C:\Users\Gabriel\Desktop\zp new\gamemodes\GM.pwn(4415) : error 017: undefined symbol "trye"
C:\Users\Gabriel\Desktop\zp new\gamemodes\GM.pwn(4440) : warning 217: loose indentation
C:\Users\Gabriel\Desktop\zp new\gamemodes\GM.pwn(9184) : warning 203: symbol is never used: "Angle"
Mano de isso aqui....nгo mechi pq n quero estragar o codigo.. vlw
pawn Код:
|
C:\Users\Gabriel\Desktop\zp new\gamemodes\GM.pwn(4415) : error 017: undefined symbol "trye"
CMD:car(playerid, params[]) {
static
Float: x,
Float: y,
Float: z,
Float: a;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
if (!IsNumeric(params[0])) {
static _f;
for (_f = 0; _f != sizeof(ListaCarros); ++_f) {
if (strfind(ListaCarros[_f], params[0], true) != -1) {
CreateVehicleEx(playerid, _f + 400, x, y, z + 1, a, 152, 1, -1);
break;
}
}
format(String, sizeof(String), "{1E90FF}Veiculo: {FFFFFF}Veнculo [%s] criado!", ListaCarros[_f - 400]);
return Msg(playerid, cortag, String), true;
} else {
static
VeiculoID;
VeiculoID = strval(params[0]);
if (400 < (VeiculoID) > 611) {
format(String, sizeof(String), "{1E90FF}Lista Carros: {FFFFFF}O Veнculo %s nгo existe em nossa lista.", VeiculoID);
return Msg(playerid, cortag, String);
}
CreateVehicleEx(playerid, VeiculoID + 400, x, y, z + 1, a, 152, 1, -1);
format(String, sizeof(String), "{1E90FF}Veiculo: {FFFFFF}Veнculo [%s] criado!", ListaCarros[VeiculoID - 400]);
Msg(playerid, cortag, String);
}
LigarCarro(playerid);
return true;
}