-
Posts
10 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by TheRive
-
-
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!
-
Mersi mult.
-
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.
-
Mersi mult.
O zi faina !
-
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;
-
Multumesc foarte mult tuturor.
Puteti da T/C
-
Acolo las PlayerRentVeh sau pun "PlayerVehicle"?
-
Este asemanatoare cu a mea, as vrea sa fie pun altfel structurata ( sunt mai newbie in acest domeniu si ... )
-
Ma chinui de o zi sa fac o comanda gen "/infernus" si sa se spawneze un vehicul.
Am facut aceasta comanda :
QuoteCMD:premier(playerid, params[])
{
if (IsPlayerInRangeOfPoint(playerid,20.0,2820.0393,1319.7740,10.7577))
{
new Float:pos[4];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
GetPlayerFacingAngle(playerid, pos[3]);
GetPlayerVehicleID(426, pos[0], pos[1], pos[2], pos[3], 1, 1, 1200);GetPlayerVehicleID()
PutPlayerInVehicle(playerid, 91, 0);
}
return 1;
}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.
[Ajutor] Am o eroare la comanda [/vcreate]
in Ajutor Scripting
Posted
Imi da acceasi eroare , chiar nu imi pot da seama de ce nu merge , am facut tot ce ma dus capul