Axelo Posted January 20, 2023 Share Posted January 20, 2023 Salut, am o problema la comanda /svf. Cand dau /svf nu imi apare nici o masina Dar masinile le am salvate in baza de date. Poza Game: https://imgur.com/a/1CPteZO DIALOG_SVF: case DIALOG_SVF: { if(!response) return true; if(svfCar[playerid]) return SCM(playerid, COLOR_GREY, "Ai deja un vehicul spawnat."); new f = PlayerInfo[playerid][pMember]; if(PlayerInfo[playerid][pRank] < svfInfo[f][listitem][svf_Rank]) return SCM(playerid, COLOR_GREY, "Nu ai rankul necesar pentru a spawna acest vehicul."); if(svfInfo[f][listitem][svf_Stock]<=0) return SCM(playerid, COLOR_GREY, "Nu mai sunt vehicule in stock."); new Float:x,Float:y,Float:z,Float:rot; GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, rot); svfCar[playerid] = CreateVehicleEx(svfInfo[f][listitem][svf_Model], x, y, z, rot, svfInfo[f][listitem][svf_Color1], svfInfo[f][listitem][svf_Color2], -1, f==1||f==2?1:0); Gas[svfCar[playerid]] = 100; VehicleInfo[svfCar[playerid]][vehGroup]=f; VehicleInfo[svfCar[playerid]][vehRank]=svfInfo[f][listitem][svf_Rank]; svfInfo[f][listitem][svf_Stock]--; format(gString, 60,"F%02d %d", f, svfCar[playerid]); SetVehicleNumberPlate(svfCar[playerid], gString); switch(svfInfo[f][listitem][svf_Model]) { case 411: { switch(f) { case 1, 2: { VehicleOBJ[svfCar[playerid]] = CreateDynamicObject(19419, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(VehicleOBJ[svfCar[playerid]], svfCar[playerid], 0.010000, -0.060000, 0.689999, 0.000000, 0.000000, 0.000000); } } } case 560: { if(f==16) { VehicleOBJ[svfCar[playerid]] = CreateDynamicObject(19308, 0, 0, 0, 0, 0, 0); AttachDynamicObjectToVehicle(VehicleOBJ[svfCar[playerid]], svfCar[playerid], 0.000000, -0.189999, 0.919999, 0.000000, 0.000000, 0.000000); } } } PutPlayerInVehicle(playerid, svfCar[playerid], 0); VehicleSVF[svfCar[playerid]] = listitem; printf("DEBUG SVF", svfInfo); format(gString, 128, "SVF: %s a spawnat un %s (rank %d).", GetName(playerid), GetVehicleName(svfInfo[f][listitem][svf_Model]), svfInfo[f][listitem][svf_Rank]); SendTeamMessage(f, COLOR_LGREEN, gString); SCM(playerid, -1, "Pentru a localiza vehiculul foloseste (/lvf) sau pentru a despawna (/dvf)."); } Comanda SVF: CMD:svf(playerid, params[]) { if(!PlayerInfo[playerid][pMember]) return SCM(playerid, COLOR_GREY, "Nu esti intr-o factiune."); new f = PlayerInfo[playerid][pMember]; if(!PlayerToPoint(playerid, 5.0, DynamicFactions[f][svfX], DynamicFactions[f][svfY], DynamicFactions[f][svfZ])) return SCM(playerid, COLOR_GREY, "Nu esti in zona unde poti sa iti spawnezi o masina."); new m = PlayerInfo[playerid][pMember]; if((m==1||m==2) && !OnDuty[playerid]) return SCM(playerid, COLOR_GREY, "Nu esti duty!"); gString[0] = (EOS), mesajsmek[0] = (EOS); strcat(gString, "#\tModel\tRank\tStock\n"); for(new i=0;i<svfCount[f];i++) { format(mesajsmek, 128, "%d\t%s\t%s%d\t%d\n", i+1, GetVehicleName(svfInfo[f][svf_Model]), PlayerInfo[playerid][pRank]<svfInfo[f][svf_Rank]?("{EE5252}+"):("{66FA66}"), svfInfo[f][svf_Rank], svfInfo[f][svf_Stock]); strcat(gString, mesajsmek); } ShowPlayerDialogEx(playerid, DIALOG_SVF, DIALOG_STYLE_TABLIST_HEADERS, "SERVER: SVF", gString, "Select", "Close"); return true; } THE KING Link to comment Share on other sites More sharing options...
Axelo Posted January 21, 2023 Author Share Posted January 21, 2023 ? THE KING Link to comment Share on other sites More sharing options...
Manager L0K3D Posted January 28, 2023 Manager Share Posted January 28, 2023 Arata-mi functia ce iti incarca datele ce ar fi trebuit sa fie afisate cand tastezi comanda /svf, nu ai pus-o mai sus. Server Query and RCON API | Actualizare script fara restart | Tips & Tricks Eureka v0.2 / Discord Eureka Link to comment Share on other sites More sharing options...
Manager L0K3D Posted March 6, 2023 Manager Share Posted March 6, 2023 Topic închis din cauza inactivității. Server Query and RCON API | Actualizare script fara restart | Tips & Tricks Eureka v0.2 / Discord Eureka Link to comment Share on other sites More sharing options...
Recommended Posts