- 0
Nu se salveaza masinile /stats /vehicles
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
bimax999
Problema intalnita (descriere): Cumpar masina de la dealership scriu /stats si /vehicles unde apare masina! Problema este ca eu cand dau relog/restart server acestea apar in /vehicles [NULL] si /stats: No car spawned..Deci imi zice ca nu exista masina..
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):
CMD:vehicles(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu esti logat!"); if(PlayerInfo[playerid][pPcarkey] == 0 && PlayerInfo[playerid][pmotokey] == 0 && PlayerInfo[playerid][phelikey] == 0 && PlayerInfo[playerid][pprcarkey] == 0) return SendClientMessage(playerid,COLOR_WHITE,"{FFB870}You do not have a vehicle."); new sendername[25],name[100]; GetPlayerName(playerid,sendername,sizeof(sendername)); format(name,sizeof(name),"** %s's vehicles **",sendername); SCM(playerid,COLOR_TUTORIAL2,name); if(PlayerInfo[playerid][pPcarkey] != 0) { new string[356],carid = PlayerInfo[playerid][pPcarkey],locked[6],neon[10]; if(CarInfo[carid][cLock] == 1) { locked = "Yes"; } else { locked = "No"; } if(CarInfo[carid][cNeon] == 0) { neon = "None"; } else if(CarInfo[carid][cNeon] == 1) { neon = "Blue"; } else if(CarInfo[carid][cNeon] == 2) { neon = "Red"; } else if(CarInfo[carid][cNeon] == 3) { neon = "Green"; } else if(CarInfo[carid][cNeon] == 4) { neon = "White"; } else if(CarInfo[carid][cNeon] == 5) { neon = "Pink"; } else if(CarInfo[carid][cNeon] == 6) { neon = "Yellow"; } format(string,sizeof(string),"Vehicle 1: Model:[%s] Locked:[%s] KM:[%.2f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s] Neon:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]),neon); SCM(playerid,COLOR_GRAD1,string); } if(PlayerInfo[playerid][pmotokey] != 0) { new string[256],carid = PlayerInfo[playerid][pmotokey],locked[6]; if(CarInfo[carid][cLock] == 1) { locked = "Yes"; } else { locked = "No"; } format(string,sizeof(string),"Vehicle 2: Model:[%s] Locked:[%s] KM:[%.2f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue])); SCM(playerid,COLOR_GRAD2,string); } if(PlayerInfo[playerid][phelikey] != 0) { new string[256],carid = PlayerInfo[playerid][phelikey],locked[6]; if(CarInfo[carid][cLock] == 1) { locked = "Yes"; } else { locked = "No"; } format(string,sizeof(string),"Vehicle 3: Model:[%s] Locked:[%s] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue])); SCM(playerid,COLOR_GRAD3,string); } if(PlayerInfo[playerid][pprcarkey] != 0) { new string[356],carid = PlayerInfo[playerid][pprcarkey],locked[6],neon[10]; if(CarInfo[carid][cLock] == 1) { locked = "Yes"; } else { locked = "No"; } if(CarInfo[carid][cNeon] == 0) { neon = "None"; } else if(CarInfo[carid][cNeon] == 1) { neon = "Blue"; } else if(CarInfo[carid][cNeon] == 2) { neon = "Red"; } else if(CarInfo[carid][cNeon] == 3) { neon = "Green"; } else if(CarInfo[carid][cNeon] == 4) { neon = "White"; } else if(CarInfo[carid][cNeon] == 5) { neon = "Pink"; } else if(CarInfo[carid][cNeon] == 6) { neon = "Yellow"; } format(string,sizeof(string),"Vehicle 4: Model:[%s] Locked:[%s] KM:[%.2f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s] Neon:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]),neon); SCM(playerid,COLOR_GRAD4,string); } SCM(playerid,COLOR_TUTORIAL2,"__________________________"); return 1; }Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Da de multe ori....Sunt disperat..
7 answers to this question
Recommended Posts