Jump to content

[REZOLVAT] Ajutor la coamnda /setstock


VaseaB
 Share

Recommended Posts

  • Hall of Flame🔥

    format(string, sizeof(string), "UPDATE `vehiclesds` SET `stock`='%d'", valoare);
    mysql_tquery(fzSQL, string, "", "");

restul comenzii faci tu

ezgif-com-gif-maker-1-00000.png

Not So Zen SRL

Link to comment
Share on other sites

na ma ia restu faci tu

YCMD:setstock(playerid, params[], help) {
    if(PlayerInfo[playerid][pAdmin] < 7) return true;
    new value, string[128];
    if(sscanf(params, "i",value)) return SCM(playerid, COLOR_GREY, "Syntax: {FFFFFF}/setstock <amount>");
    if(value < 0) return true;
    
    for(new i = 0; i < 59; i++) DSModels[dStock] = value;
    
    format(string, sizeof(string), "({FF0000}Admin Info{FFFFFF}) %s a modificat numarul disponibil de vehicule in dealership in %d.", GetName(playerid), value);
    SendAdminMessage(COLOR_WHITE, string, 1);
    format(string, sizeof(string), "UPDATE `dsveh` SET `Stock`='%d'", value);
    mysql_tquery(SQL, string, "", "");
    return true;
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...