-
Posts
186 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
News
Documentation
Posts posted by MiritaXD
-
-
Sterge adminlog(string) si variabila "up" nu este folosita
-
if(CpZiar[playerid] == 1) { if(IsPlayerAttachedObjectSlotUsed(playerid,6)) { new rand, money, exp, string[256]; if(GetPVarInt(playerid, "InHand") == 0) return SCM(playerid, -1, "Blablabla!"); money = 15000 + random(5000); exp = 3 + random(3); PlayerInfo[playerid][pMoney] += money; GivePlayerMoneyEx(playerid, money); PlayerInfo[playerid][pExp] += exp; MoneyEarned[playerid] += money; PlayerInfo[playerid][pMoney] += money; UpdateVariable(playerid, pMoneyx); UpdateVariable(playerid, pExpx); format(string, sizeof(string), "(Job): {ffffff}Ai primit %d puncte de experienta.", exp); SendClientMessage(playerid, 0x00e1edFF, string); rand = random(sizeof(RandomZiar)); SetPlayerCheckpoint(playerid, RandomZiar[rand][0], RandomZiar[rand][1], RandomZiar[rand][2], 2.0); format(string, sizeof(string), "Informatii Job~n~~n~Ai castigat: $%s~n~Castig Total: $%s", FormatNumber(money), FormatNumber(MoneyEarned[playerid])); PlayerTextDrawSetString(playerid, JobTD[6], string); PlayerTextDrawShow(playerid, JobTD[6]); SetPVarInt(playerid, "InHand", 0); SetPlayerSpecialAction(playerid, 0); RemovePlayerAttachedObject(playerid, 6); ClearAnimations(playerid); } }
-
CMD:getjob(playerid, params[]) { if(PlayerJob[playerid] != 0) return SCM(playerid, COLOR_ORANGERED, "Ai deja un job."); new string[256]; if(!IsPlayerInRangeOfPoint(playerid, 5.0, 2795.7803,-1619.5692,10.9219)) return SCM(playerid, COLOR_ORANGERED, "Nu esti in zona unui job."); PlayerJob[playerid] = 1; format(string, sizeof(string), "Noul tau job este %s", JOB_NAME1); SCM(playerid, COLOR_ORANGERED, string); return 1; }
-
Acum 9 ore, Kuzuhara a spus:
Salut
Am si eu o mica problema cand scriu comanda /v imi zica ca , comanda este necunoscuta. Ce pot face?
https://pastebin.com/RwUwTRre - aceasta este comanda.
Posibil sa deti un vehicul invalid
-
new amount, rand = random(20);
-
Codu tau(din pastebin)
if(PlayerInfo[playerid][pCrates][0] == 0); return SCM(playerid, -1, "EROARE: Nu ai un crate normal!");
pune
if(PlayerInfo[playerid][pCrates][0] == 0) return SCM(playerid, -1, "EROARE: Nu ai un crate normal!");
-
CMD:skip(playerid, params[]){ TutTime[playerid] = 80; retunr true; }
Nu sunt sigur daca e aceiasi variabila la burned
-
Acum 6 minute, Stefan a spus:
pai ce ce pot sa-i fac?
arata functia LoadProperty
-
Acum 1 oră, Stefan a spus:
De aici pleaca problema , cum pot rezolva? ca am scos asta si nu mai dadea errori dar nu se puneau pe sv casele/bizurile etc asa ca am bagato inapoi se puneau dar iar dadea warningurile alea!
public LoadSystems()
{
new query[128];
mysql_format(SQL, query, sizeof(query), "SELECT * FROM `houses`");
mysql_tquery(SQL, query, "LoadProperty", "");mysql_format(SQL, query, sizeof(query), "SELECT * FROM `bizz`");
mysql_tquery(SQL, query, "LoadBizz", "");LoadTurfs();
for(new i = 0; i < sizeof(TurfInfo); i++)
{
Turfs = GangZoneCreateEx(TurfInfo[zMinX],TurfInfo[zMinY],TurfInfo[zMaxX],TurfInfo[zMaxY],TurfInfo[zID],1.0);
}mysql_format(SQL, query, sizeof(query), "SELECT * FROM `factions`");
mysql_tquery(SQL, query, "LoadDynamicFactions", "");mysql_format(SQL, query, sizeof(query), "SELECT * FROM `clans`");
mysql_tquery(SQL, query, "LoadClanInfo", "");mysql_format(SQL, query, sizeof(query), "SELECT * FROM `cars`");
mysql_tquery(SQL, query, "LoadCar", "");mysql_format(SQL, query, sizeof(query), "SELECT * FROM `stock`");
mysql_tquery(SQL, query, "LoadStock", "");
}Normal că nu mai primești erorii, server-ul nu mai acceseaza acele funcții
-
Poate fi de la versiunea mysql sau nu e ceva bine. Arata un cod
-
incearca sa adaugi
#pragma compress 0
-
ai adaugat
SelectTextDraw(playerid, -1);?
ai adaugat "raza" la
PlayerTextDrawTextSize(playerid, textid], 20.000000, 50.000000);?
-
Ai facut o functie de load?
-
incearca asta
CMD:testtrailer(playerid,params[]) { if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)) && Trailer[playerid] == 0) return SCM(playerid,-1,"Nu ai o remorca!"); SetTimerEx("AttachTrailer", 1000, 0, "i", playerid); return true; }
-
YCMD:wipehouses(playerid, params[], help) { new string[180], query[180]; if(PlayerInfo[playerid][pAdmin] < 7) return SendClientMessage(playerid, COLOR_GREY, "Nu ai nivelul necesar de admin pentru a face asta."); for(new i = 1; i < sizeof(HouseInfo); i++) { foreach(Player, i) { if(IsPlayerConnected(i) && PlayerInfo[i][pHouse] == i) { PlayerInfo[i][pHouse] = 999; PlayerInfo[i][pRented] = -1; Update(i, pHousex); } } HouseInfo[i][hHel] = 0; HouseInfo[i][hArm] = 0; HouseInfo[i][hLock] = 0; HouseInfo[i][hOwned] = 1; HouseInfo[i][hValue] = 0; format(query,sizeof(query),"UPDATE `houses` SET `Hel`='0',`Arm`='0',`Lockk`='0',`Owned`='1',`Owner`='The State',`Value`='0' WHERE `ID`='%d'",house); mysql_query(SQL,query); format(query,sizeof(query),"UPDATE users SET `House`='999' WHERE `name`='%s'",HouseInfo[i][hOwner]); mysql_query(SQL,query); strmid(HouseInfo[i][hOwner], "The State", 0, strlen("The State"), 255); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "* Casa %d a fost vandut cu succes la stat!", i); SendClientMessage(playerid, COLOR_YELLOW, string); UpdateLabel(1, i); } return 1; }
-
Host/LocalHost? Arata server.cfg
-
YCMD:wherebonus(playerid, params[], help) { new randomblablabal = random(3)+1; switch(randomblablabal) { case 1: SetPlayerCheckpoint(playerid, X, Y, Z, 5.0); case 2: SetPlayerCheckpoint(playerid, X, Y, Z, 5.0); case 3: SetPlayerCheckpoint(playerid, X, Y, Z, 5.0); case 4: SetPlayerCheckpoint(playerid, X, Y, Z, 5.0); } return true; }
-
new Text:TDEditor_TD[1]; TDEditor_TD[0] = TextDrawCreate(633.374938, 423.333221, "MiritaXD_/_~r~test~n~~w~rpg.LocalHost.ro"); TextDrawLetterSize(TDEditor_TD[0], 0.220624, 1.244167); TextDrawAlignment(TDEditor_TD[0], 3); TextDrawColor(TDEditor_TD[0], -1); TextDrawSetShadow(TDEditor_TD[0], 0); TextDrawSetOutline(TDEditor_TD[0], 1); TextDrawBackgroundColor(TDEditor_TD[0], 255); TextDrawFont(TDEditor_TD[0], 2); TextDrawSetProportional(TDEditor_TD[0], 1); TextDrawSetShadow(TDEditor_TD[0], 0); //Player TextDraws: new PlayerText:TDEditor_PTD[MAX_PLAYERS][1]; TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 633.374938, 423.333221, "MiritaXD_/_~r~test~n~~w~rpg.LocalHost.ro"); PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.220624, 1.244167); PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 3); PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -1); PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0); PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][0], 1); PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 255); PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 2); PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 1); PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
-
%s / blablabla~n~blablabla.com
- 1
-
La 27.04.2018 la 20:36, KB.HERO a spus:
frate uitate la topic ca e din 2017
am vazut =))
-
-
-
faci case DIALOG_RENTAIR1:
-
Eroare comanda [/skip].
in Ajutor Scripting
Posted · Edited by MiritaXD