-
Posts
2,688 -
Joined
-
Last visited
-
Days Won
25
Community Answers
-
Gireada's post in Problema salvare mysql was marked as the answer
House_IsOwner(playerid, houseid) { if (!PlayerData[playerid][pLogged] || PlayerData[playerid][pID] == -1) return 0; if ((HouseData[houseid][houseExists] && HouseData[houseid][houseOwner] != 0) && HouseData[houseid][houseOwner] == PlayerData[playerid][pID]) return 1; return 0; }
House_IsOwner(playerid, houseid) { if (!PlayerData[playerid][pLogged] || PlayerData[playerid][pID] == -1) return 0; if ((HouseData[houseid][houseExists] && HouseData[houseid][houseOwner] != 0) && HouseData[houseid][houseOwner] == GetPlayerSQLID(playerid))
) return 1; return 0; }
-
Gireada's post in Problema plata taximetristi was marked as the answer
Vezi cum ce inmulteste variabila unde stocheaza timp cat a mers.
-
Gireada's post in Crash la comnda /fill was marked as the answer
adaugi sub playerVariables[pMoney]
GivePlayerMoney(playerid, -businessVariables[11][bEnterPrice]);
-
Gireada's post in Problema case si bizz-uri was marked as the answer
new string2[758]; for(new h = 0; h < sizeof(HouseInfo); h++) { if(HouseInfo[h][hOwned] == 0) { AddStaticPickup(19470, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); pickups++; format(string2, sizeof(string2), "{FFFFFF}For Sale! \n{FFFFFF}Info: {FFFFFF}%s \n{FFFFFF}Cost: {8080FF}%d $ \n{FFFFFF}Level: {00BF30}%d \n{FFFFFF}Scrie {FF0000}/buyhouse",HouseInfo[h][hDiscription], HouseInfo[h][hValue], HouseInfo[h][hLevel]); } if(HouseInfo[h][hOwned] == 1) { AddStaticPickup(1314, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]); pickups++; if(HouseInfo[h][hRentabil] == 0) { format(string2, sizeof(string2), "{FFFFFF}Proprietar: {00BF30}%s \n{FFFFFF}Cost: {8080FF}%d $ \n{FFFFFF}Level: {00BF30}%d",HouseInfo[h][hOwner], HouseInfo[h][hValue],HouseInfo[h][hLevel]); } else { format(string2, sizeof(string2), "{FFFFFF}Proprietar: {00BF30}%s \n{FFFFFF}Cost: {8080FF}%d $ \n{FFFFFF}Level: {00BF30}%d \n{FFFFFF}Rent: {8080FF}%d $ \n{FFFFFF}Scrie {FF0000}/rentroom",HouseInfo[h][hOwner], HouseInfo[h][hValue],HouseInfo[h][hLevel], HouseInfo[h][hRent]); } } HouseLabel[h] = Create3DTextLabel(string2, 0x008080FF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 40.0, 0, 1); } for(new h = 0; h < sizeof(BizzInfo); h++) { if(BizzInfo[h][bOwned] == 0) { AddStaticPickup(19470, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]); pickups++; format(string2, sizeof(string2), "{2EAD15}%s\n {2EAD15}For Sale\n {2EAD15}Level: {FFFFFF}%d\n {2EAD15}Valoare: {FFFFFF}%d\n{2EAD15} /buybiz",BizzInfo[h][bMessage],BizzInfo[h][bLevelNeeded],BizzInfo[h][bBuyPrice]); } if(BizzInfo[h][bOwned] == 1) { AddStaticPickup(1239, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]); pickups++; format(string2, sizeof(string2), "{85CAFF}%s\n {85CAFF}Owner: {FFFFFF}%s\n {85CAFF}Exto: {FFFFFF}%s\n {85CAFF}Level: {FFFFFF}%d\n {85CAFF}Fee: {FFFFFF}%d\n {85CAFF}Valoare: {FFFFFF}%d\n{85CAFF}Press ENTER/F",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bLevelNeeded],BizzInfo[h][bEntranceCost],BizzInfo[h][bBuyPrice]); } BizLabel[h] = Create3DTextLabel(string2, 0x008080FF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 40.0, 0, 1); } for(new h = 0; h < sizeof(SBizzInfo); h++) { if(SBizzInfo[h][sbOwned] == 0) { AddStaticPickup(19470, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]); pickups++; format(string2, sizeof(string2), "{2EAD15}%s\n {2EAD15}For Sale\n {2EAD15}Level: {FFFFFF}%d\n {2EAD15}Valoare: {FFFFFF}%d\n{2EAD15} /buybiz",SBizzInfo[h][sbMessage],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbBuyPrice]); } if(SBizzInfo[h][sbOwned] == 1) { AddStaticPickup(1239, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]); pickups++; format(string2, sizeof(string2), "{85CAFF}%s\n {85CAFF}Owner: {FFFFFF}%s\n {85CAFF}Exto: {FFFFFF}%s\n {85CAFF}Level: {FFFFFF}%d\n {85CAFF}Fee: {FFFFFF}%d\n {85CAFF}Valoare: {FFFFFF}%d\n{85CAFF}Press ENTER/F",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbBuyPrice]); } SBizLabel[h] = Create3DTextLabel(string2, 0x008080FF, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 40.0, 0, 1); }
-
Gireada's post in Restrictie. was marked as the answer
if(GetSpawnedVeh(playerid) > 0) return SendClientMessage(playerid, -1, "Ai deja o masina cumparata");
-
Gireada's post in problema /collecttrash was marked as the answer
if(vehicleVariables[newcar][vVehicleJob] == 9 && playerVariables[playerid][pJob] == 9 && work[playerid] == 0) { SendClientMessage(playerid, COLOR_YELLOW, "Use /collecttrash to start your job."); } -
Gireada's post in Ajutor restrictie was marked as the answer
if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1) { if(PlayerInfo[playerid][pAdmin] 5 && AdminDuty[playerid] == ) return 1; if(!(IsATccMember(playerid)) && tduty[playerid] == && !(IsInTCCZone(playerid))) return 1; new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); }Am facut cum am inteles, sper sa iti mearga. Daca nu iti merge te rog explica mai bine.
-
Gireada's post in Problema OnTrailerHooked was marked as the answer
Deci dupa ce a raspuns la dialogul DIALOG_TRUCKER, creezi o variabila prin care arati daca a inceput misiunea. De exemplu: new startjob[MAX_PLAYERS];
Iar la OnPlayerConnect pui
startjob[playerid] = 0;
Iar la OnTRailerHooked
public OnTrailerHooked(playerid, vehicleid, trailerid) { if(PlayerInfo[playerid][pJob] == 10 && startjob[playerid] == 0) { ShowPlayerDialog(playerid, DIALOG_TRUCKER, DIALOG_STYLE_LIST, "Mission Selection","Ocean Dock's (LS)\nDillimore (LS)\nLas Colinas (LS)\nSpinybed (LV)\nLVA Freight Depot (LV)\nRedsands West (LV)","Chose",""); } return 1; }Iar la dialogul DIALOG_TRUCLER pui startjob[playerid] = 1; si la sfarsitul misiunii pui startjob[playerid] = 0;
-
Gireada's post in Cum pot schimba spawn civil was marked as the answer
Te duci la OnPlayerSpawn si pui SetPlayerPos(playerid, x, y ,z);// x, y, z fiind coordonatele unde vrei sa il spawnezi.
-
Gireada's post in Problema /invite was marked as the answer
In loc de
InvitedGang[Player] = PlayerInfo[playerid][GangID];Pui
InvitedGang[Player] = playerid; -
Gireada's post in problema ajutor urgent was marked as the answer
http://gtamap.delux-host.com/converter/
-
Gireada's post in Eroor - Foreach was marked as the answer
Trebuie sa il ai in folderul pawno>includes
-
Gireada's post in Problema tuning cars was marked as the answer
Foloseste functia LinkVehicleToInterior pe vehiculul care intra in tunning,
-
Gireada's post in array must be indexed (variable "name") was marked as the answer
Sterge linia si mai pune odata account = PlayerInfo[pAccount];
-
Gireada's post in Intrebare TextDraw was marked as the answer
1. Vei primi warning pentru ca nu ai postat dupa model.
2. I-al de aici : https://www.youtube.com/watch?v=TVSGqqmH3qs http://www.solidfiles.com/d/f99b3d488f/iTD.rar
-
Gireada's post in Eroare : Cannot read from file mSelection.inc was marked as the answer
Deschizi gamemode-ul sau fs-ul cu pawno care are includerul mSelection
-
Gireada's post in Problema destroy trailer was marked as the answer
La OnVehicleDeath pune doar SetVehicleToRespawn(GetVehicleTrailer(vehicleid))
-
Gireada's post in Problema GODFATHER was marked as the answer
Ai uitat o paranteza deschisa iti spun eu sigur. Daca o rezolvi acele erori nu iti va merge server-ul
-
Gireada's post in problema icon case was marked as the answer
La OnGameModeInit pui:
SetTimer("UpdateHouseIcon", 5000, 1);
Iar asta o pui la sfarsitul gamemode-ului:
forward UpdateHouseIcon(); public UpdateHouseIcon() { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { for(new h = 0; h < sizeof(HouseInfo); h++) { if(HouseInfo[h][hOwned] == 1) { RemovePlayerMapIcon(playerid, h); SetPlayerMapIcon(i, h, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 32, COLOR_YELLOW); } if(HouseInfo[h][hOwned] == 0) { RemovePlayerMapIcon(playerid, h); SetPlayerMapIcon(i, h, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 31, COLOR_YELLOW); } } } } } -
Gireada's post in Restrictie Masina. was marked as the answer
http://wiki.sa-mp.com/wiki/SetVehicleParamsEx
-
Gireada's post in Problema Timer was marked as the answer
SetTimerEx("Liberty", 10000, 0, "i", playerid); //5 secunde , nu se repeta, valoarea este integer pt playerid
Conteaza daca literele sunt mici sau mari