Lexu97 Posted August 22, 2014 Report Share Posted August 22, 2014 Problemă întâlnită (descriere):Cum mai creez inca un slot pentru masini.Ero(area / rile) / warning-(ul / urile):/m/Liniile de cod / sursa / script-ul:[pawn] if(strcmp(cmd, "/buycar", true) == 0) { if(PlayerData[playerid][pLevel] < 3) { SendClientMessage(playerid,COLOR_WHITE,"[R|T] Iti trebuie level `3` pentru a-ti cumpara un vehicul personal !"); return 1; } if(PlayerData[playerid][pPcarkey] != 999 && PlayerData[playerid][pPcarkey1] != 999 && PlayerData[playerid][pPcarkey2] != 999 && PlayerData[playerid][pPcarkey3] != 999) return SendClientMessage(playerid, COLOR_GREY, "Nu mai poti cumpara alt vehicul."); if(IsPlayerInRangeOfPoint(playerid, 5.0, 328.9902,-1513.3729,36.0391)) { ShowPlayerDialog(playerid, 140, DIALOG_STYLE_LIST, "Masini personale:", "Off RoadnSport CarnBikesnBoats", "Alege", "Anulare"); } else { SendClientMessage(playerid,COLOR_WHITE,"Nu te aflii la Dealership !"); } return 1; } [/pawn] Imagini / Video (optional):/n/Aţi încercat să rezolvaţi singur?:Nu,nu ma pricep la asta. Am pus comanda /buycar daca mai trebuie linii sa imi spuneti,cine ma poate ajuta +1,mersi. Link to comment Share on other sites More sharing options...
WopsS Posted August 22, 2014 Report Share Posted August 22, 2014 La PlayerData adaugi pPcarkey4. Iar la verificari adaugi [pawn]PlayerData[playerid][pPcarkey4] != 999[/pawn] Tot asa faci peste tot pe unde ai [pawn]PlayerData[playerid][pPcarkey3][/pawn] dar aici nu adaugi si != adaugi ce este si la pPcarkey3. Link to comment Share on other sites More sharing options...
Lexu97 Posted August 23, 2014 Author Report Share Posted August 23, 2014 La PlayerData adaugi pPcarkey4. Iar la verificari adaugi [pawn]PlayerData[playerid][pPcarkey4] != 999[/pawn] Tot asa faci peste tot pe unde ai [pawn]PlayerData[playerid][pPcarkey3][/pawn] dar aici nu adaugi si != adaugi ce este si la pPcarkey3. inlocuiesc playerdata[playerid][pPcarkey3] !=999 cu PlayerData[playerid][pPcarkey4] !=999 ? Link to comment Share on other sites More sharing options...
WopsS Posted August 24, 2014 Report Share Posted August 24, 2014 Nu, adaugi langa PlayerData[playerid][pPcarkey3] !=999. Link to comment Share on other sites More sharing options...
Iulian Posted August 26, 2014 Report Share Posted August 26, 2014 Cauta in gamemode (si in fisierele in care se salveaza datele | playerii etc) pPcarkey3 si duplici linia. Dar in loc de pPcarkey3 pup pPcarkey 4. Fii atent la chestiile minore, inainte de asta fa un backup la gamemode. Rate me Link to comment Share on other sites More sharing options...
Question
Lexu97
Problemă întâlnită (descriere):Cum mai creez inca un slot pentru masini.
Ero(area / rile) / warning-(ul / urile):/m/
Liniile de cod / sursa / script-ul:[pawn]
if(strcmp(cmd, "/buycar", true) == 0)
[/pawn]
Imagini / Video (optional):/n/
Aţi încercat să rezolvaţi singur?:Nu,nu ma pricep la asta.
Am pus comanda /buycar daca mai trebuie linii sa imi spuneti,cine ma poate ajuta +1,mersi.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts