Jump to content

TheRive

Membru
  • Posts

    10
  • Joined

  • Last visited

Everything posted by TheRive

  1. Imi da acceasi eroare , chiar nu imi pot da seama de ce nu merge , am facut tot ce ma dus capul
  2. CMD:vcreate(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first."); if(PlayerInfo[playerid][pAdmin] >= 5) { new id,model,string[128],giveplayer[30],total; if(sscanf(params, "ui", id, model)) return SCM(playerid, COLOR_GREY, "Syntax:{FFFFFF} /vcreate [playerid] [model]"); if(model < 400 || model > 611) return SCM(playerid, COLOR_GREY, "Invalid car ID! (400-611)"); if(IsPlayerConnected(id)) { if(id != INVALID_PLAYER_ID) { for(new v; v < MAX_PERSONAL_CARS; v++) { if(PlayerInfo[playerid][pCar][v] != -1) total++; } if(total+1 > PlayerInfo[id][pCarSlots]) { SendClientMessage(playerid, COLOR_GREY, "This player have all vehicles slots full."); return 1; } GetPlayerName(id, giveplayer, sizeof(giveplayer)); CreateVEH[playerid] = model; CreateVEHID[playerid] = id; format(string, sizeof(string), "Esti sigur ca vrei sa-i dai lui %s masina %s?\n\nAbuzul de aceasta comanda poate duce la scoaterea ta din staff!", giveplayer, aVehicleNames[model - 400]); ShowPlayerDialog(playerid, DIALOG_VCREATE, DIALOG_STYLE_MSGBOX, "Personal Vehicle Create", string, "Da", "Nu"); } } else return SendClientMessage(playerid, COLOR_GREY, "Player not connected."); } else return SendClientMessage(playerid, COLOR_LIGHTGREEN3, AdminOnly); return 1; Am adaugat aceasta comanda (copy-paste) , am adaugat toate variabilele si imi da eroarea [ error 001: expected token: ")", but found "{" ] si nu inteleg ce este gresit [ if(PlayerInfo[playerid][pCar][v] != -1) total++; ] asta este linia din care imi da eroare. Multumesc!
  3. Salut, Ma poate ajuta cineva cu un sfat cum sa pun mapicon la obiectele de la quest atunci cand iti cumperi un backpack ( exemplu ) si cand mori sa dispara gen.
  4. Vreau sa creez un tabel in baza de date pentru niste apartamente , am incercat dar nu a functionat. Daca ma puteti ajuta. function load_apartaments() { new x, result[32], apartaments, Cache: db = mysql_query(SQL, "SELECT * FROM `apartaments` ORDER BY `apartaments`.`ID` ASC"); for(new i, j = cache_get_row_count (); i != j; ++i) { cache_get_field_content(i, "ID", result); x = strval(result); cache_get_field_content(i, "X", result); apartamentInfo[x][apPos][0] = floatstr(result); cache_get_field_content(i, "Y", result); apartamentInfo[x][apPos][1] = floatstr(result); cache_get_field_content(i, "Z", result); apartamentInfo[x][apPos][2] = floatstr(result); cache_get_field_content(i, "Angle", result); apartamentInfo[x][apPos][3] = floatstr(result); cache_get_field_content(i, "UserID", result); apartamentInfo[x][apUser] = strval(result); cache_get_field_content(i, "Value", result); apartamentInfo[x][apValue] = strval(result); cache_get_field_content(i, "Lock", result); apartamentInfo[x][apLock] = strval(result); cache_get_field_content(i, "Owner", result); format(apartamentInfo[x][apOwner], 32, result); apartaments ++; apartamentInfo[x][apLabel] = CreateDynamic3DTextLabel("", -1, apartamentInfo[x][apPos][0], apartamentInfo[x][apPos][1], apartamentInfo[x][apPos][2], 25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, -1, -1, 100.0); refresh_label(x); } cache_delete(db); CreateDynamicMapIcon(apartamentInfo[0][apPos][0], apartamentInfo[0][apPos][1], apartamentInfo[0][apPos][2],31,0,0,0,-1,500.0); CreateDynamicMapIcon(apartamentInfo[1][apPos][0], apartamentInfo[1][apPos][1], apartamentInfo[1][apPos][2],31,0,0,0,-1,500.0); for(new i = 0; i < 24; i++) apartament_door_status[i] = 0;
  5. Multumesc foarte mult tuturor. Puteti da T/C
  6. Acolo las PlayerRentVeh sau pun "PlayerVehicle"?
  7. Este asemanatoare cu a mea, as vrea sa fie pun altfel structurata ( sunt mai newbie in acest domeniu si ... )
  8. Ma chinui de o zi sa fac o comanda gen "/infernus" si sa se spawneze un vehicul. Am facut aceasta comanda : Dar nu e ceea ce-mi doresc . Am incercat sa pun ca dupa 2 minute dupa ce ai iesit din masina sa se distruga nu mi-a mers , doar respawn sau isi dadea destroy fix cand foloseam comanda.
×
×
  • 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.