30.05.2011, 04:34
como eu defino isso?
as linhas sгo
e a outra
as linhas sгo
pawn Код:
GivePlayerMoneyEx(playerid,-10000);
SBizzInfo[1][sbTill] += 10000;
ExtortionSBiz(1, 10000);
SBizzInfo[1][sbProdutos]--;
HireCar[playerid] = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Voce pode ~r~/desalugarcarro~n~~g~/trancar ~w~ para trancar o carro.",hirefee);
TogglePlayerControllable(playerid, 1);
GameTextForPlayer(playerid, string, 5000, 3);
return 1;
pawn Код:
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
SBizzInfo[idx][sbOwned],
SBizzInfo[idx][sbOwner],
SBizzInfo[idx][sbMessage],
SBizzInfo[idx][sbExtortion],
SBizzInfo[idx][sbEntranceX],
SBizzInfo[idx][sbEntranceY],
SBizzInfo[idx][sbEntranceZ],
SBizzInfo[idx][sbLevelNeeded],
SBizzInfo[idx][sbBuyPrice],
SBizzInfo[idx][sbEntranceCost],
SBizzInfo[idx][sbTill],
SBizzInfo[idx][sbLocked],
SBizzInfo[idx][sbInterior],
SBizzInfo[idx][sbProdutos],
SBizzInfo[idx][sbMaxProdutos],
SBizzInfo[idx][sbPriceProd]);
if(idx == 0)
{
file2 = fopen("propriedades/sbizz.cfg", io_write);
}
else
{
file2 = fopen("propriedades/sbizz.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}