if(listitem == 1) { new vehicleid = GetOwnedVehicleID(playerid); if (vehicleid == INVALID_VEHICLE_ID) return SendClientMessage(playerid, RED1, "Vocк nгo tem um veнculo."); if(!IsPlayerInVehicle(playerid, vehicleid)) return SendClientMessage(playerid, RED1, "Vocк precisa estar em seu Veнculo."); VehicleInfo[vehicleid][vPark] = 1; GetVehiclePos(vehicleid, VehicleInfo[vehicleid][vPX], VehicleInfo[vehicleid][vPY], VehicleInfo[vehicleid][vPZ]); GetVehicleZAngle(vehicleid, VehicleInfo[vehicleid][vPA]); format(string, sizeof string, "|- Vocк estacionou seu veнculo nesse local -|"); SendClientMessage(playerid, GREEN1, string); } |
Vocк estб perguntando porque sua maзг nгo amadurece e estб postando um cуdigo sobre bananas.
|
Cara poetico,gostei haha
Qual parte que eu tenho que postar carinha? ![]() |
Meu problema й o seguinte
1-Eu compro o carro na concessionaria tudo certo e bonito mais quando eu o estaciono ele diz que salvou mais quando da respawn de carros ele some. |
static stock SalvarCarros() { new strsave[64]; for(new idx = 0; idx < sizeof(CarInfo); idx ++) { format(strsave, sizeof strsave, Pasta_Carros, idx); DOF2_SetInt(strsave, "Modelo", CarInfo[idx][cModel]); DOF2_SetFloat(strsave, "CarroX", CarInfo[idx][cLocationx]); DOF2_SetFloat(strsave, "CarroY", CarInfo[idx][cLocationy]); DOF2_SetFloat(strsave, "CarroZ", CarInfo[idx][cLocationz]); DOF2_SetFloat(strsave, "CarroA", CarInfo[idx][cAngle]); DOF2_SetInt(strsave, "cor1", CarInfo[idx][cColorOne]); DOF2_SetInt(strsave, "cor2", CarInfo[idx][cColorTwo]); DOF2_SetString(strsave, "Dono", CarInfo[idx][cOwner]); DOF2_SetString(strsave, "Descricao", CarInfo[idx][cDescription]); DOF2_SetInt(strsave, "Valor", CarInfo[idx][cValue]); DOF2_SetInt(strsave, "Licence", CarInfo[idx][cLicense]); DOF2_SetInt(strsave, "TemDono", CarInfo[idx][cOwned]); DOF2_SetInt(strsave, "Trancado", CarInfo[idx][cLock]); DOF2_SetInt(strsave, "Grana", CarInfo[idx][cGrana]); DOF2_SetInt(strsave, "Entrada", CarInfo[idx][cEntrada]); DOF2_SetInt(strsave, "Date", CarInfo[idx][cDate]); DOF2_SetFloat(strsave, "OCarroX", CarInfo[idx][cOLocationx]); DOF2_SetFloat(strsave, "OCarroY", CarInfo[idx][cOLocationy]); DOF2_SetFloat(strsave, "OCarroZ", CarInfo[idx][cOLocationz]); DOF2_SetFloat(strsave, "OCarroA", CarInfo[idx][cOAngle]); DOF2_SaveFile(); } return true; } static stock SalvarCarro(idx) { new strsave[64]; format(strsave, sizeof strsave, Pasta_Carros, idx); if(DOF2_FileExists(strsave)) { DOF2_SetInt(strsave, "Modelo", CarInfo[idx][cModel]); DOF2_SetFloat(strsave, "CarroX", CarInfo[idx][cLocationx]); DOF2_SetFloat(strsave, "CarroY", CarInfo[idx][cLocationy]); DOF2_SetFloat(strsave, "CarroZ", CarInfo[idx][cLocationz]); DOF2_SetFloat(strsave, "CarroA", CarInfo[idx][cAngle]); DOF2_SetInt(strsave, "cor1", CarInfo[idx][cColorOne]); DOF2_SetInt(strsave, "cor2", CarInfo[idx][cColorTwo]); DOF2_SetString(strsave, "Dono", CarInfo[idx][cOwner]); DOF2_SetString(strsave, "Descricao", CarInfo[idx][cDescription]); DOF2_SetInt(strsave, "Valor", CarInfo[idx][cValue]); DOF2_SetInt(strsave, "Licence", CarInfo[idx][cLicense]); DOF2_SetInt(strsave, "TemDono", CarInfo[idx][cOwned]); DOF2_SetInt(strsave, "Trancado", CarInfo[idx][cLock]); DOF2_SetInt(strsave, "Grana", CarInfo[idx][cGrana]); DOF2_SetInt(strsave, "Entrada", CarInfo[idx][cEntrada]); DOF2_SetInt(strsave, "Date", CarInfo[idx][cDate]); DOF2_SetFloat(strsave, "OCarroX", CarInfo[idx][cOLocationx]); DOF2_SetFloat(strsave, "OCarroY", CarInfo[idx][cOLocationy]); DOF2_SetFloat(strsave, "OCarroZ", CarInfo[idx][cOLocationz]); DOF2_SetFloat(strsave, "OCarroA", CarInfo[idx][cOAngle]); DOF2_SaveFile(); } return true; } |
SalvarCarros();
C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(287 ![]() C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(2923) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(2929) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(39913) : error 004: function "CarregarCarros" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(4157 ![]() C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(41601) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(41630) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(41667) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(41710) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(41756) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(41784) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(41819) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(41919) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(42095) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(4219 ![]() C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(42252) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(52405) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(57030) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(57064) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(59642) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(70309) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(71311) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(71381) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(71509) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(71510) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(71511) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(71512) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(71513) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(71612) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(71684) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(71765) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(71846) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(71880) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(71999) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(7202 ![]() C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(72057) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(72086) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(72115) : error 004: function "SalvarCarro" is not implemented C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(8275 ![]() C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(83096) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(83223) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(83521) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(87575) : error 055: start of function body without function header C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(87577) : error 010: invalid function or declaration C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(87580) : error 021: symbol already defined: "DOF2_SetInt" C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(87581) : error 021: symbol already defined: "DOF2_SetFloat" C:\Users\Welson\Downloads\SAMP\server 3\gamemodes\BDL.pwn(87582) : error 021: symbol already defined: "DOF2_SetFloat" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors. |