[Ajuda] Galera estou com uma duvida aqui
#1

Gostaria de saber como mudo quantos carros uma pessoa pode comprar..

Linha do CMD:

PHP код:
if(strcmp(cmdtext"/comprarcarro"true) == 0) {
new 
VehicleID;
VehicleID GetPlayerVehicleID(playerid);
new 
pname[MAX_PLAYER_NAME];
GetPlayerName(playeridpnamesizeof(pname));
for(new 
carro 0carro MAX_CARROScarro++)
{
format(stringsizeof(string), "carro%d.ini"carro);
if(
strcmp(dini_Get(string"Dono"), pnametrue) == 0){
SendClientMessage(playeridVermelho"Vocк jб tem um carro");
return 
1;
}
if(
IsPlayerInAnyVehicle(playerid) && GetPlayerVehicleSeat(playerid) == && VehicleID == dini_Int(string"Id")){
if(
GetPlayerGrana(playerid) >= dini_Int(string"Preco")){
new 
aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanameMAX_PLAYER_NAME);
dini_IntSet(string"TDono"1);
dini_Set(string"Dono"aname);
SendClientMessage(playeridVioleta"(INFO) Veiculo comprado com sucesso!");
SendClientMessage(playeridVermelho"(INFO) Para ver os comandos do veiculo, use: /meucarro");
GivePlayerGrana(playerid, -dini_Int(string"Preco"));
TogglePlayerControllable(playerid1);
return 
1;
} else {
SendClientMessage(playeridVermelho"(ERRO) Vocк nгo tem dinheiro suficiente!");
return 
1;
}
}
}
(
topo#define MAX_CARROS 350 
Como eu mudo? ://
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)