Jump to content

cstef4n

Membru
  • Posts

    42
  • Joined

  • Last visited

Everything posted by cstef4n

  1. salut, mai este valabil anuntul ??
  2. salut, ma poti ajuta si pe mine la o problema? Nu imi afiseaza dialog-ul cu membrii din clan
  3. salutare, Am si eu o problema la dialog-ul members, nu afiseaza membrii. Uitati codul mai jos: case 1: { new szDialog2[1024], Members, name[180], cwarn[180], cdays[180], szRank1[180]; format(query, sizeof(query), "SELECT * FROM `users` WHERE `users`.`Clan` = '%d' ORDER BY `users`.`ClanRank` DESC LIMIT 50", PlayerInfo[playerid][pClan]); new Cache: result = mysql_query(SQL, query); strcat(szDialog2, "#. Name\tRank\tClan Warns\tClan Days\n"); for(new i, j = cache_get_row_count (); i != j; ++i) { cache_get_field_content(i, "Username", name); cache_get_field_content(i, "ClanRank", szRank1); cache_get_field_content(i, "ClanWarns", cwarn); cache_get_field_content(i, "ClanDays", cdays); format(Selected[playerid][Members], MAX_PLAYER_NAME, name); format(szDialog, sizeof(szDialog), "%d. %s\t%d\t%s/3\t%s\n", Members+1, name, strval(szRank1), cwarn, cdays); strcat(szDialog2, szDialog); Members++; } cache_delete(result); ShowPlayerDialog(playerid, DIALOG_CLAN_MEMBERS, DIALOG_STYLE_TABLIST_HEADERS, "Clan members", szDialog2, "Ok", "Back"); }
  4. cauta dupa variabila pAdmin sau cum o ai tu definita in gamemode.
  5. Am pus, Cand ma loghez imi arata asta: sa mp 007 — Postimages fara sa ma spawneze
  6. mersi mult mane pentru ajutor!
  7. case DIALOG_BUYCAR: { if(!response) return 1; new num = BuyCar[playerid]; if(PlayerInfo[playerid][pCashMoney] >= DSInfo[num][dsPrice]) { if(DSInfo[num][dsStock] > 0) { GiveVehicle(playerid, num); DSInfo[num][dsStock] --; mysql_format(SQL, query, sizeof(query), "UPDATE `dealership` SET `Stock`='%d' WHERE `ID`='%d'", DSInfo[num][dsStock], num); mysql_tquery(SQL, query, "", ""); } else { new stringg[1000]; format(stringg,sizeof(stringg),"Aceasta masina numai este disponibila in Dealership. Stoc epuizat.\nYou can't buy this vehicle from the dealership. Out of stock."); ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Out of stock", stringg, "Close",""); } } else return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money to purchase this vehicle."); }
  8. E problema de la "new num = listitem + cheapcars + 1;
  9. case 1: { new szDialog2[1024], szTitle[50], xx; strcat(szDialog2, "Vehicle Name\tPrice\tStock\n"); for(new j = 0; j < MAX_PERSONAL_VEH; j++) { if(DSInfo[j][dsPrice] > 45000 && DSInfo[j][dsPrice] <= 1500000) { format(szDialog, sizeof(szDialog), "%s\t$%s\t%d\n", DSInfo[j][dsVehicleName], FormatNumber(DSInfo[j][dsPrice]), DSInfo[j][dsStock]); strcat(szDialog2, szDialog); xx++; } } format(szTitle, sizeof(szTitle), "Expensive Vehicles: %d", xx); ShowPlayerDialog(playerid, DIALOG_DEALERSHIP2, DIALOG_STYLE_TABLIST_HEADERS, szTitle, szDialog2, "Select", "Close"); } case DIALOG_DEALERSHIP2: { if(!response) return 1; new cheapcars; for(new xf = 0; xf < MAX_PERSONAL_VEH; xf++) { if(DSInfo[xf][dsPrice] > 0 && DSInfo[xf][dsPrice] <= 1500000) { cheapcars = xf; } } // new num = listitem + cheapcars + 1; new num = listitem + 2; BuyCar[playerid] = num; new string33[256], stringtitle[256]; format(stringtitle, sizeof(stringtitle), "%s ($%s) - %s available", DSInfo[num][dsVehicleName], FormatNumber(DSInfo[num][dsPrice]), FormatNumber(DSInfo[num][dsStock])); format(string33, sizeof(string33), "Vehicle name: %s\nVehicle price: %s\nNumber of cars available: %s", DSInfo[num][dsVehicleName], FormatNumber(DSInfo[num][dsPrice]), FormatNumber(DSInfo[num][dsStock])); ShowPlayerDialog(playerid, DIALOG_BUYCAR, DIALOG_STYLE_MSGBOX, stringtitle, string33, "Buy car", "Back"); }
  10. salut, cine ma poate ajuta si pe mine? Nu afiseaza ID-ul masinii corect la Expensive Vehicles
  11. salut, mai ai gamemodul asta?
  12. salutare! Caut persoana serioasa care vrea sa ne deschidem un server de SA:MP. Vin cu gamemode inceput de la 0, nu e terminat in totalitate dar se fac update-uri frecvent la el (pot sa va las IP-ul la server Eu voi plati hostul si domeniul.ro (forumul) anual; Am nevoie de o persoana rabdatoare cu jucatorii, care are timp sa se implice. Eu ma voi ocupa de gamemode (scripting) si de plata hostului si a forumului.
  13. Cine ma poate ajuta? E ceva simplu, stiu ca e de la TogglePlayerSpectating dar nu stiu unde trebuie pus
  14. salutare tuturor, Cand ma loghez pe server imi apare butonul "Spawn" si nu ma spawneaza pe server doar daca apas pe butonul "Spawn". Va las un screenshot mai jos sa mp 002 — Postimages
×
×
  • Create New...

Important Information

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.