[Pedido] Sistemas de Carro do Lost Bullets... [+REP]
#1

Resolvido
Reply
#2

Pega o gm e pronto tem la o sistema kkk
Reply
#3

Putz cara so novato nisso me ajuda?!
Reply
#4

Pfv algem ajuda ai...
Reply
#5

sabe qd vc vai na net segura o ctrl + c dps vai em algum lugar e aperta ctrl+v? й a mesmicima coisa, basta saber ler e ter 2 dedos disponнveis
Reply
#6

Consegui tiu mais nao ta comprando o carro... quem tiver a soluзao ou perto...

/ccar [Bugado]

Код:
if(strcmp(cmd, "/ccar", true) == 0)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
if(IsPlayerAdmin(playerid)|| pAdmin[playerid] == 5)
{
new tmp[256];
new carid, Float:ang, preco, cor1, cor2;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, Cinza, "(ERRO) Veiculo invбlido.");
return 1;
}
carid = strval(tmp);

tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, Cinza, "(ERRO): /ccar [id] [preзo] [cor1] [cor2]");
return 1;
}
preco = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, Cinza, "(ERRO): /ccar [id] [preзo] [cor1] [cor2]");
return 1;
}
cor1 = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, Cinza, "(ERRO): /ccar [id] [preзo] [cor1] [cor2]");
return 1;
}
cor2 = strval(tmp);
if(carid >= 400 && carid <= 611)
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
format(string, sizeof(string), "/Carros/carro%d.ini", proximocarro);
if(!dini_Exists(string)){
dini_Create(string);
dini_IntSet(string,"Modelo", carid);
dini_FloatSet(string,"CordX", Float:X);
dini_FloatSet(string,"CordY", Float:Y);
dini_FloatSet(string,"CordZ", Float:Z);
dini_FloatSet(string,"Angulo", Float:ang);
dini_IntSet(string,"Cor1", cor1);
dini_IntSet(string,"Cor2", cor2);
dini_IntSet(string,"TDono", 0);
dini_Set(string,"Dono","Ninguem");
dini_IntSet(string,"TDono2", 0);
dini_Set(string,"Dono2","Ninguem");
dini_IntSet(string,"Preco", preco);
dini_IntSet(string,"Destrancado", 0);
dini_IntSet(string,"Farol", 1);
dini_IntSet(string,"Capo", 0);
dini_IntSet(string,"Alarme", 0);
dini_IntSet(string,"Portas", 0);
dini_IntSet(string,"PMalas", 0);
dini_IntSet(string,"Litros", 0);
dini_IntSet(string,"Problema", 0);
dini_Set(string,"Nome","Sem Nome");
dini_Set(string,"Placa","MeuCarro");
dini_Set(string,"TAutoreparar","0");
}
SetTimerEx("CriarVeiculo2",5000,false,"dffffdd",carid,X,Y,Z,ang,cor1,cor2);
format(string, sizeof(string), "* Vocк colocou um veнculo a venda.");
SendClientMessage(playerid, Azul, string);
return 1;
} else {
SendClientMessage(playerid, Vermelho, "** Vocк nгo estб em um veнculo.");
}
}
else{
SendClientMessage(playerid, Cinza, "** Veiculo invбlido.");
return 1;
}
} else {
SendClientMessage(playerid, Cinza, "** Vocк nгo й um admin level 5.");
return 1;
}
return 1;
}
/comprarcarro [Bugado]

Код:
if(strcmp(cmdtext, "/comprarcarro", true) == 0)
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
for(new carro = 0; carro < MAX_CARROS; carro++)
{
format(string, sizeof(string), "carro%d.ini", carro);
if(dini_Exists(string))
{
if(dini_IntSet(file,"Carro1",1);
dini_IntSet(file,"CarroID1",carro);
}
else if(dini_Int(file,"Carro2") == 1)
{
dini_IntSet(file,"Carro2",1);
dini_IntSet(file,"CarroID2",carro);
}
else if(dini_Int(file,"Carro3") == 1)
{
dini_IntSet(file,"Carro3",1);
dini_IntSet(file,"CarroID3",carro);
				}
SendClientMessage(playerid, Vermelho, "Vocк estб bloqueado para comprar veнculos.");
return 1;
}
if(strcmp(dini_Get(string, "Dono"), "Nenhum", false) == 1)
{
RemovePlayerFromVehicle(playerid);
}
else
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerVehicleSeat(playerid) == 0 && VehicleID == dini_Int(string, "Id"))
{
if(GetPlayerGrana(playerid) >= dini_Int(string, "Preco"))
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
dini_IntSet(string, "TDono", 1);
dini_Set(string, "Dono", aname);
SendClientMessage(playerid, Azul, "(INFO) Veiculo comprado com sucesso!");
SendClientMessage(playerid, Azul, "(INFO) Para ver os comandos do veiculo, use: /meucarro");
dini_IntSet(file,"Carro",1);
GivePlayerGrana(playerid, -dini_Int(string, "Preco"));
TogglePlayerControllable(playerid, 1);
return 1;
} else {
SendClientMessage(playerid, Vermelho, "(ERRO) Vocк nгo tem dinheiro suficiente!");
return 1;
}
}
}
}
}
}
й isso ai
Reply
#7

algem??!!
Reply
#8

algem ajuda vei aff [+REP] quem resolver
Reply
#9

baixa a misera do gm do lbb e copia , atй pra isso tu tem preguiзa fi da lebara?
Reply
#10

Quote:
Originally Posted by dPlaYer_
Посмотреть сообщение
baixa a misera do gm do lbb e copia , atй pra isso tu tem preguiзa fi da lebara?
Primeiramente mais respeito neh cara? se vc se acha o esperto do pawno --'

Код:
C:\Users\Cliente\Desktop\....\Servidor\gamemodes\.....pwn(5277) : error 017: undefined symbol "pmodelid"
C:\Users\Cliente\Desktop\....\Servidor\gamemodes\.....pwn(5277) : warning 215: expression has no effect
C:\Users\Cliente\Desktop\....\Servidor\gamemodes\.....pwn(5277) : error 001: expected token: ";", but found "]"
C:\Users\Cliente\Desktop\....\Servidor\gamemodes\.....pwn(5277) : error 029: invalid expression, assumed zero
C:\Users\Cliente\Desktop\....\Servidor\gamemodes\.....pwn(5277) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Linha:

Код:
pmodelid[playerid] = dini_Int(string, "Modelo");
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)