-
Posts
67 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by Sprite_RoPlayers
-
-
help?
-
La 18.12.2018 la 13:32, ASGOOD a spus:
if(time < 36000) return SS(playerid, COLOR_LIGHTGREEN3, "Trebuie sa ai 10 ore jucate in ultimele 30 de zile (fara AFK/sleep) pentru a putea cumpara o proprietate.", "You need 10 played hours in last 30 days (without AFK/sleep) to buy a property.");
Acum 20 ore, VolticHD a spus:scoatel si va merge
Am scos ala si acu imi spune ca cica am deja un business si eu nu am. Am incercat si dupa alt cont si tot la fel.
-
Salut am si eu urmatoare problema
Cand dau sa cumpar o casa imi zice ca nu am 30 de ore pentru a putea cumpara casa.
Si nu stiu cum sa scot chestia asta din comanda am incercat cu // verificarea dar degeaba nu imi cumpara casa.
YCMD:buybusiness(playerid, params[], help) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first."); if(IsPlayerConnected(playerid)) { new Float:oldposx, Float:oldposy, Float:oldposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); new string[128],sendername[25],stringcasa[128],strr[256],time,count; if(PlayerInfo[playerid][pPbiskey] != 255) return SendClientMessage(playerid, COLOR_GREY, "You already own a business, type /sellbiztostate if you want to buy this one."); for(new b = 1; b < sizeof(BizzInfo); b++) { if(PlayerToPoint(2.0, playerid, BizzInfo[b][bEntranceX], BizzInfo[b][bEntranceY], BizzInfo[b][bEntranceZ])) { if(PlayerInfo[playerid][pLevel] < BizzInfo[b][bLevelNeeded]) { format(string, sizeof(string), "You must be level %d to purchase this business.",BizzInfo[b][bLevelNeeded]); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } format(strr, sizeof(strr), "SELECT * FROM `timeplayed` WHERE `pid`='%d'", PlayerInfo[playerid][pSQLID]); new Cache: salut = mysql_query(SQL, strr); for(new i, j = cache_get_row_count (); i != j; ++i) { if(count < 30) { time += cache_get_field_content_int(i, "time"); count++; } } cache_delete(salut); if(time < 36000) return SS(playerid, COLOR_LIGHTGREEN3, "Trebuie sa ai 10 ore jucate in ultimele 30 de zile (fara AFK/sleep) pentru a putea cumpara o proprietate.", "You need 10 played hours in last 30 days (without AFK/sleep) to buy a property."); if(BizzInfo[b][bOwned] == 0) { if(GetPlayerCash(playerid) >= BizzInfo[b][bBuyPrice]) { PlayerInfo[playerid][pPbiskey] = b; BizzInfo[b][bOwned] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(BizzInfo[b][bOwner], PlayerInfo[playerid][pNormalName], 0, 25, 255); GivePlayerCash(playerid,-BizzInfo[b][bBuyPrice]); if(BizzInfo[b][bSbiz] == 0) { PlayerInfo[playerid][pInt] = BizzInfo[b][bInterior]; PlayerInfo[playerid][pLocal] = b ; InBussines[playerid] = b; SetPlayerInterior(playerid,BizzInfo[b][bInterior]); SetPlayerVirtualWorld(playerid, BizzInfo[b][bVirtual]); PlayerInfo[playerid][pInt] = BizzInfo[b][bInterior]; SetPlayerPosEx(playerid,BizzInfo[b][bExitX],BizzInfo[b][bExitY],BizzInfo[b][bExitZ]); } SendClientMessage(playerid, COLOR_WHITE, "Congratulations on your purchase!"); format(stringcasa, sizeof(stringcasa), "%s [user:%d] a cumparat bizz-ul [bizz:%d] de la Stat pentru $%s.",sendername,PlayerInfo[playerid][pSQLID],b,FormatNumber(BizzInfo[b][bBuyPrice])); ABroadCast(COLOR_YELLOW, stringcasa, 1); new var100[256],string2[256]; mysql_real_escape_string(stringcasa, string2); mysql_format(SQL, var100, sizeof(var100), "INSERT INTO playerlogs (`playerid`,`giverid`,`action`) VALUES ('%d','0','%s')", PlayerInfo[playerid][pSQLID],string2); mysql_tquery(SQL,var100,"",""); new str1[256]; mysql_format(SQL,str1,sizeof(str1),"UPDATE users SET `Money`='%d',`Bizz`='%d' WHERE `name`='%s'",GetPlayerCash(playerid),PlayerInfo[playerid][pPbiskey],PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str1,"",""); mysql_format(SQL,str1,sizeof(str1),"UPDATE `bizz` SET `Owned`='1',`Owner`='%s' WHERE `ID`='%d'",BizzInfo[b][bOwner],b); mysql_tquery(SQL,str1,"",""); OnPropTextdrawUpdate(2,b); return 1; } else return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money."); } else if(BizzInfo[b][bOwned] == 1 && BizzInfo[b][bPrice] > 0) { if(GetPlayerCash(playerid) < BizzInfo[b][bPrice]) return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money."); new ownerid, query[256]; GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[playerid][pPbiskey] = b; BizzInfo[b][bOwned] = 1; format(query, sizeof(query), "SELECT * FROM `users` WHERE `name`='%s'", BizzInfo[b][bOwner]); new Cache: result = mysql_query(SQL, query); for(new i, j = cache_get_row_count (); i != j; ++i) { ownerid = cache_get_field_content_int(i, "id"); } cache_delete(result); format(stringcasa, sizeof(stringcasa), "%s [user:%d] a cumparat bizz-ul [bizz:%d] de la %s [user:%d] pentru $%s.",sendername,PlayerInfo[playerid][pSQLID],b,BizzInfo[b][bOwner],ownerid,FormatNumber(BizzInfo[b][bPrice])); ABroadCast(COLOR_YELLOW, stringcasa, 1); strmid(BizzInfo[b][bOwner], PlayerInfo[playerid][pNormalName], 0, 25, 255); GivePlayerCash(playerid,-BizzInfo[b][bPrice]); if(BizzInfo[b][bSbiz] == 0) { PlayerInfo[playerid][pInt] = BizzInfo[b][bInterior]; PlayerInfo[playerid][pLocal] = b ; InBussines[playerid] = b; SetPlayerInterior(playerid,BizzInfo[b][bInterior]); SetPlayerVirtualWorld(playerid, BizzInfo[b][bVirtual]); PlayerInfo[playerid][pInt] = BizzInfo[b][bInterior]; SetPlayerPosEx(playerid,BizzInfo[b][bExitX],BizzInfo[b][bExitY],BizzInfo[b][bExitZ]); } SendClientMessage(playerid, COLOR_WHITE, "Congratulations on your purchase!"); new var100[256],string2[256]; mysql_real_escape_string(stringcasa, string2); mysql_format(SQL, var100, sizeof(var100), "INSERT INTO playerlogs (`playerid`,`giverid`,`action`) VALUES ('%d','%d','%s')", PlayerInfo[playerid][pSQLID], ownerid, string2); mysql_tquery(SQL,var100,"",""); new str1[256]; mysql_format(SQL,str1,sizeof(str1),"UPDATE users SET `Money`='%d',`Bizz`='%d' WHERE `name`='%s'",GetPlayerCash(playerid),PlayerInfo[playerid][pPbiskey],PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str1,"",""); mysql_format(SQL,str1,sizeof(str1),"UPDATE `bizz` SET `Owned`='1',`Owner`='%s',`Prices`='0' WHERE `ID`='%d'", BizzInfo[b][bOwner], b); mysql_tquery(SQL,str1,"",""); mysql_format(SQL,str1,sizeof(str1),"UPDATE users SET Bizz=255, Money=Money+%d WHERE id=%d", BizzInfo[b][bPrice], ownerid); mysql_tquery(SQL,str1,"",""); foreach(new i : Player) { if(PlayerInfo[i][pSQLID] == ownerid) { PlayerInfo[i][pPbiskey] = 255; GivePlayerCash(i, BizzInfo[b][bPrice]); Update(i, pCashx); } } new name[30]; GetPlayerName(playerid, name, sizeof(name)); format(string2, sizeof(string2), "%s has bought your business for $%s.", name, FormatNumber(BizzInfo[b][bPrice])); mysql_real_escape_string(string2, var100); mysql_format(SQL, var100, sizeof(var100), "INSERT INTO `emails` (`playerid`,`Message`) VALUES('%d','%s')", ownerid, var100); mysql_tquery(SQL,var100,"",""); BizzInfo[b][bPrice] = 0; OnPropTextdrawUpdate(2,b); } } } } return 1; }
-
La 22.10.2018 la 16:35, [XSS]MaxXx a spus:
Oh boy, cât talent pe tine ... lasă rss-ul că sisteme de gang ala rss sunt deja pe net făcute de alții, deci neimpresionant.
Dacă ești 'up to the challenge', reprodu-mi sistemul de clanuri de pe XSS, exact așa cum e el, cu tot cu comenzi, număr nelimitat de clanuri, baze, tiers, capturări de diferite tipuri, teritorii, etc ... și eu îmi iau angajamentul să-ți dau 50 euro paypal dacă reușești, că văd că tot te dai foarte tare și interesant pe tema asta.
Ai timp să-mi rezolvi tema până pe 15 noiembrie, dacă nu înseamnă că ești doar un lache cu gura mare, cum zicea și DWIGHT =).
Auzi ma tu te-ai gasit sa vorbesti?
Tu ai copiat RSS-ul 99% si tot tu te iei de asta? Copil pripas ce esti.
-
Am rezolvat problema doar ca acu gamemode-ul nu se mai copiliaza in 20 de secunde si in 30/32 si nu inteleg dc.
-
Buna seara.
Am si eu urmatoarele warninguri si nu stiu sa le rezolv chiar nu inteleg am facut si eu trecerea de la zcmd la ycmd.
Si pana sa fac trecerea asta nu aveam nici o eroare.
C:\pawno\include\YSI\y_hooks/impl.inc(3119) : warning 219: local variable "rx" shadows a variable at a preceding level C:\pawno\include\YSI\y_hooks/impl.inc(3119) : warning 219: local variable "ry" shadows a variable at a preceding level C:\pawno\include\YSI\y_hooks/impl.inc(3119) : warning 219: local variable "rz" shadows a variable at a preceding level C:\pawno\include\YSI\y_bintree.inc(378) : warning 219: local variable "right" shadows a variable at a preceding level C:\pawno\include\YSI\y_bintree.inc(511) : warning 219: local variable "right" shadows a variable at a preceding level C:\pawno\include\defnew.inc(389) : warning 201: redefinition of constant/macro (symbol "strcpy(%0,%1,%2)") C:\Users\SpriteTV\Desktop\gamemodesv\RPG ROPLAYERS\gamemodes\rpg.pwn(34764) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 7 Warnings. [Finished in 29.4s]
3119 Linia din acel include este : public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
right = (data[index][E_BINTREE_TREE_RIGHT] = data[index2][E_BINTREE_TREE_RIGHT]),
#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2) // strcpy(dest, source, length)
-
Boss mai ai link de la el?
La 17.10.2017 la 22:57, Uzzi25 Official a spus:Adv mane
-
Acum 31 minute, andrei9971 a spus:
Ai doua variante, fie mai faci o functie isAtATM si o apelezi si pe aceea la comenzile de la banca, fie modifici functia isAtBank in felul urmator.
forward isAtBank(playerid); public isAtBank(playerid){ if(IsPlayerConnected(playerid)){ // mai poti face si alte verificari if(IsPlayerInRangeOfPoint(playerid, 50.0, X1, Y1, Z1) || IsPlayerInRangeOfPoint(playerid, 50.0, X2, Y2, Z2)) // and so on... return 1; } return 0; }
Si folosesti operatorul de disjunctie in loc sa faci mai multe verificari iar X1, Y1, Z1 reprezinta primul set de coordonate, X2, Y2, Z2 al doilea si tot asa.
ms
-
Salut nu inteles cand pun cordonatele la atm unde se afla nu mai merge comanda.
CMD:withdraw(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first."); if(IsPlayerConnected(playerid)) { if(IsAtBank(playerid)) { new money,string[100]; if(sscanf(params, "i", money)) { SendClientMessage(playerid, COLOR_GREY, "Syntax:{FFFFFF} /withdraw [amount]"); format(string, sizeof(string), "You have $%s in your account.", FormatNumber(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_YELLOW, string); return 1; } if(money < 1) return SendClientMessage(playerid, COLOR_GREY, "Invalid amount specified."); if (money > PlayerInfo[playerid][pAccount]) return SendClientMessage(playerid, COLOR_WHITE, "You don't have that amount of money."); ConsumingMoney[playerid] = 1; GivePlayerCash(playerid, money); PlayerInfo[playerid][pAccount] = PlayerInfo[playerid][pAccount] - money; format(string, sizeof(string), "You have withdrawn $%s from your bank account. Your account balance is now $%s.", FormatNumber(money), FormatNumber(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_DCHAT, string); Update(playerid, pBank); Update(playerid, pCashx); return 1; } else return SendClientMessage(playerid, COLOR_WHITE, "You are not at the bank!"); } return 1; }
public IsAtBank(playerid) { if(IsPlayerConnected(playerid)) { if(IsPlayerInRangeOfPoint(playerid, 50.0, 2306.5564,-16.3045,26.7496)) {//BANK LS return 1; } if(IsPlayerInRangeOfPoint(playerid, 50.0, X,Y,Z)) {//SPAWN ATM return 1; } } return 0; }
-
ce mysql foloseste?
-
Acum 5 ore, Banditul a spus:
format(str6,sizeof(str6),"~y~%s",aVehicleNames[PlayerInfo[i][pCarModel][i] - 400]); PlayerTextDrawSetString(i, VehNameTD[i], str6); PlayerTextDrawShow(i, VehNameTD[i]);
Setezi string-u dupa afisezi, daca afisezi inainte sa ii setezi o anumita valoare stringului va afisa ce i-ai dat tu cand l-ai creat
am facut cum ai zis dar tot nu imi apare numele la masina.
-
Acum 7 ore, valivaly96 a spus:
Prima data seteaza stringul dupa afiseaza TD-ul
adica
-
Salut am incercat sa fac si eu pe textdraw sa imi arate numele la masina cand esti in ia da nu imi ia numele la masina
chiar nu stiu ce sa mai fac
Cod-ul pe care l-am facut
PlayerTextDrawShow(i, VehNameTD);
format(str6,sizeof(str6),"~y~%s",aVehicleNames[PlayerInfo[pCarModel] - 400]);
PlayerTextDrawSetString(i, VehNameTD, str6);
PlayerTextDrawShow(i, VehNameTD[i]); format(str6,sizeof(str6),"~y~%s",aVehicleNames[PlayerInfo[i][pCarModel][i] - 400]); PlayerTextDrawSetString(i, VehNameTD[i], str6);
Text draw-ul il arata cu numele de infernus adica numele pe care l-am pus la textdraw cand l-am facut se poate sa ma ajute careva?
-
rezolvat
-
Salut am facut si eu comanda /restart pe textdraw doar ca am o problema cu functia check timer dar nu stiu ce are.
C:\Users\SpriteTV\Desktop\RPG ROPLAYERS\gamemodes\rpg.pwn(35628) : error 029: invalid expression, assumed zero C:\Users\SpriteTV\Desktop\RPG ROPLAYERS\gamemodes\rpg.pwn(35628 -- 35629) : warning 215: expression has no effect C:\Users\SpriteTV\Desktop\RPG ROPLAYERS\gamemodes\rpg.pwn(35629) : error 001: expected token: ";", but found "if" C:\Users\SpriteTV\Desktop\RPG ROPLAYERS\gamemodes\rpg.pwn(13761) : warning 204: symbol is assigned a value that is never used: "Timer" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors. [Finished in 19.6s] forward CheckTimer(); public CheckTimer(){ if(RestartTime > 0) { RestartTime ==; if(RestartTime == 5) KickAll(); if(RestartTime == 0) GameModeExit(); } return 1; }
-
Acum 3 ore, Adel a spus:
Dai panelu ai aproape 1k:)
cum imi dau admin nu inteleg cum pot sa imi dau .
imi zice nu ai acces la comanda.
cand scriu setadmin
problema debug eroare in consola
in Ajutor Scripting
Posted
Salut am si eu urmatoarea problema in consola
http://prntscr.com/ly8bmc
si asta este dupa ce am adugat asta
if(newkeys & KEY_CTRL_BACK) { if(LapteVaca[playerid]) return SendClientMessage(playerid,-1, "SERVER : {00FF00}Ai luat deja laptele vaci! Dute in hambar! Si nu fii lenels!"); for(new i = 0x0; i != sizeof(PozitieVaca); i++) { if(IsPlayerInRangeOfPoint(playerid,2.0,PozitieVaca[i][0], PozitieVaca[i][1], PozitieVaca[i][2])) { ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); switch(random(5)) { case 0: LapteVaca[playerid] = !LapteVaca[playerid], Pas[i]--, SendClientMessage(playerid,-1, "FERMIER : {999999}Bravo , ai luat laptele de la vaca.Dute golestel!"); case 1: SendClientMessage(playerid,-1, " {FF00FF}STOP! Vaca are mamita nu o mulge!{00FF00}(mamita=bolnava)"); case 2: LapteVaca[playerid] = !LapteVaca[playerid], Pas[i]--, SendClientMessage(playerid,-1, "FERMIER : {999999}Bravo , ai luat laptele de la vaca.Dute golestel!"); case 3: SendClientMessage(playerid,-1, " {FF00FF}STOP! Vaca are mamita nu o mulge!{00FF00}(mamita=bolnava)"); } new string[128]; if(Pas[i] == 0) return SendClientMessage(playerid,-1, "SERVER : {FFFFFF}Vaca asta a muls-o alt player."); format(string,sizeof(string),"{FFFFFF}Grajd cu o vaca pentru mulgere \nApasa {FFFFFF}H",Pas[i]); Update3DTextLabelText(label[i], 0xFFFFFFFF, string); break; } } }
daca o scot nu mai primesc.