Jump to content

Maffw

Members
  • Posts

    69
  • Joined

  • Last visited

Everything posted by Maffw

  1. Detalii: doresc și eu aripiile acelea de inger stiti la ce ma refer dar sa fie una stanga si una dreapta sa nu fie intr-o poza ambele aripioare Imagine: Aveti la rankuriile de forum!
  2. Ok, chiar nah. nu-mi prea place gamemode-ul ..
  3. Codrinel-ul este sponsorizat de BUGGED cumparati puncte premium pe bugged mai ieftine de cat pe bugged.
  4. Incerc acum. Edit : intr-un fel merge dar imi ma de 2 ori acelasi mesaj..
  5. Nici eu nu sunt expert in pawno, dar macar stiu cu ce sa mananca acest limbaj de programare .. ON: Vezi daca numele bazei de date este exact nu numele bazei de date creeata in phpmyadmin .
  6. Cine te-a mintit ? cat ai uracat baza de date in phpmyadmin poti sa o si stergi .
  7. Cum a zis si el mai sus Cauta linia : SQL = mysql_connect("localhost","root","database",""); Sa fie asa : localhost - pc-ul root - lasi asa database - pui numele de la baza de date "" - aici lasi gol, e parola Daca pui SQL = mysql_connect("localhost","root","","database"); Nu-ti mai merge.
  8. CMD:spawncar(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai."); if(PlayerInfo[playerid][pAdmin] >= 6) { new model,sendername[25],string[256]; if(sscanf(params, "i", model)) return SCM(playerid,COLOR_GREY, "Sintaxa: {FFFFFF}/spawncar <Model>"); if(model < 400 || model > 611) return SCM(playerid,COLOR_YELLOW2, "Error: Invalid car ID."); new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); new carid = AddStaticVehicle(model, X,Y,Z, 0.0, -1, -1); Carspawn[carid] = carid; GetPlayerName(playerid, sendername, sizeof(sendername)); new vehicles = GetVehicleModel(carid) - 400; format(string, sizeof(string), "AdmBot: Admin %s has spawned %s [Model ID:%d - Car ID: %d].",sendername,aVehicleNames[vehicles],model,carid); ABroadCast(COLOR_LOGS, string, 4); format(string,sizeof(string),"VehLog: %s has spawned car model %d.",sendername,model); Adminlog(string); LinkVehicleToInterior(carid, GetPlayerInterior(playerid)); } else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly); return 1; } CMD:givegun(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai."); if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 3) { new id,gun,ammo,string[100],sendername[30],giveplayer[30]; if(sscanf(params, "uii",id,gun,ammo)) { SCM(playerid,COLOR_GREY, "Sintaxa: {FFFFFF}/givegun <Nume/ID> <Weapon ID> <Ammo>"); SCM(playerid,COLOR_WHITE,"1-Brass Knuckles; 2-Golf Club; 3-Nightstick; 4-Knife; 5-Baseball Bat; 6-Shovel; 7-Pool Cue; 8-Katana;"); SCM(playerid,COLOR_WHITE,"9-Chainsaw; 10-Double-ended Dildo; 11-Dildo; 12-Vibrator; 13-Silver Vibrator; 14-Flowers; 15-Cane;"); SCM(playerid,COLOR_WHITE,"16-Grenade; 17-Tear Gas; 18-Molotov Cocktail; 22-9mm; 23-Silenced 9mm; 24-Desert Eagle; 25-Shotgun;"); SCM(playerid,COLOR_WHITE,"26-Sawnoff Shotgun; 27-Combat Shotgun; 28-Micro SMG/Uzi; 29-MP5; 30-AK-47; 31-M4; 32-Tec-9; 33-Country Rifle;"); SCM(playerid,COLOR_WHITE,"34-Sniper Rifle; 35-RPG; 36-HS Rocket; 37-Flamethrower; 38-Minigun; 39-Satchel Charge; 40-Detonator;"); SCM(playerid,COLOR_WHITE,"41-Spraycan; 42-Fire Extinguisher; 43-Camera; 44-Night Vis Goggles; 46-Parachute;"); return 1; } if(gun < 1||gun > 46||gun==19||gun==20||gun==21||gun==45) return SCM(playerid,COLOR_WHITE,"Invalid weapond ID."); if(ammo <1||ammo > 1000) return SCM(playerid,COLOR_WHITE,"Invalid ammo (1-1000)."); if(IsPlayerConnected(id)) { if(id != INVALID_PLAYER_ID) { GivePlayerWeaponEx(id, gun, ammo); GetPlayerName(id, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "AdmBot: Admin %s has given %s gun id %d.",sendername,giveplayer,gun); ABroadCast(COLOR_LOGS,string,3); if(GetPlayerState(id) == PLAYER_STATE_PASSENGER) { new gun2,tmp; GetPlayerWeaponData(id,5,gun2,tmp); #pragma unused tmp if(gun2)SetPlayerArmedWeapon(id,gun2); else SetPlayerArmedWeapon(id,0); } } } else return SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: Acel player nu este conectat."); } else return SendClientMessage(playerid,COLOR_WHITE, AdminOnly); } return 1; } Le faci tu dupa gamemode-ul tau .
  9. Ce sa editeze man ... "si cautati in jos pana gasiti asta: if(PlayerInfo[playerid][pColor] == 0) { format(szMessage, sizeof(szMessage), "{CECECE}%s:{FFFFFF} %s", szPlayerName, text); }" Eu nu am asta.. poate nimeni nu are asta ... Si se vede ca e copiat din GM, tu ai zis ca faci /acolor dar defat asta e /pcolor din gm s4urik si nu mai stiu eu ... Nu ai zis ca trebuie sa puna la PlayerInfo : aColor, sau cum e tot de aici : pColor, Astea le lasi sa le scrie noi.. new szMessage[1000]; new szPlayerName[32]; GetPlayerName(playerid, szPlayerName, 32); Si daca sunt nou, unde as pune astea, tu zici ca la OnPlayerText dar poate le am deja .. Daca ma uit mai bine poate gasesc si mai multe greseli, tu ai facut si pColor si aColor .. doar ca sunt gresite .
  10. Uite tot public-ul .. http://pastebin.com/TB8teSnQ
  11. Tot nu merge .. https://postimg.org/image/kueuivg4x/
  12. Salutare bugged, am "furat" comanda /pcolor dintr-un gamemode si am incercat sa o implementez in alt-ul dar am niste probleme ... CMD:pcolor(playerid, params[]) { if(PlayerInfo[playerid][pPremiumAccount] == 1) { ShowPlayerDialog(playerid, DIALOG_PCOLOR, DIALOG_STYLE_LIST, "Premium colors:" , "{CECECE}White\n{0087FE}Blue{FFFFFF}\n{662BBE}Dark purple{FFFFFF}\n{FFE600}Yellow{FFFFFF}\n{FF00FF}Purple{FFFFFF}\n{3FFF3F}Green{FFFFFF}\n{83D553}Lime green{FFFFFF}\n{187700}Dark green{FFFFFF}\n{FF9A00}Orange{FFFFFF}\n{222222}Black{FFFFFF}\n{FF2C9D}Pink{FFFFFF}" , "Select" , "Cancel"); } else return SendClientMessage(playerid,COLOR_WHITE,"You are not a premium user."); return 1; } if(dialogid == DIALOG_PCOLOR) { if(response) { switch(listitem) { case 0: { PlayerInfo[playerid][pColor] = 0; SCM(playerid, COLOR_WHITE,"{CECECE}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 1: { PlayerInfo[playerid][pColor] = 1; SCM(playerid, COLOR_WHITE,"{4169E1}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 2: { PlayerInfo[playerid][pColor] = 2; SCM(playerid, COLOR_WHITE,"{662BBE}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 3: { PlayerInfo[playerid][pColor] = 3; SCM(playerid, COLOR_WHITE,"{FFE600}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 4: { PlayerInfo[playerid][pColor] = 4; SCM(playerid, COLOR_WHITE,"{FF00FF}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 5: { PlayerInfo[playerid][pColor] = 5; SCM(playerid, COLOR_WHITE,"{3FFF3F}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 6: { PlayerInfo[playerid][pColor] = 6; SCM(playerid, COLOR_WHITE,"{83D553}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 7: { PlayerInfo[playerid][pColor] = 7; SCM(playerid, COLOR_WHITE,"{187700}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 8: { PlayerInfo[playerid][pColor] = 8; SCM(playerid, COLOR_WHITE,"{FF9A00}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 9: { PlayerInfo[playerid][pColor] = 9; SCM(playerid, COLOR_WHITE,"{222222}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } case 10: { PlayerInfo[playerid][pColor] = 10; SCM(playerid, COLOR_WHITE,"{FF2C9D}Server:{FFFFFF} Nick color changed! Hope you like the new color!"); } } } } Cred ca la onplayertext e problema ... new szMessage[1000]; new szPlayerName[32]; GetPlayerName(playerid, szPlayerName, sizeof(szPlayerName)); ProxDetector(20.0, playerid,szMessage,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE); if(PlayerInfo[playerid][pColor] == 0) { format(szMessage, sizeof(szMessage), "{CECECE}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 1) { format(szMessage, sizeof(szMessage), "{4169E1}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 2) { format(szMessage, sizeof(szMessage), "{662BBE}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 3) { format(szMessage, sizeof(szMessage), "{FFE600}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 4) { format(szMessage, sizeof(szMessage), "{FF00FF}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 5) { format(szMessage, sizeof(szMessage), "{3FFF3F}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 6) { format(szMessage, sizeof(szMessage), "{83D553}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 7) { format(szMessage, sizeof(szMessage), "{187700}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 8) { format(szMessage, sizeof(szMessage), "{FF9A00}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 9) { format(szMessage, sizeof(szMessage), "{222222}%s:{FFFFFF} %s", szPlayerName, text); } else if(PlayerInfo[playerid][pColor] == 10) { format(szMessage, sizeof(szMessage), "{FF2C9D}%s:{FFFFFF} %s", szPlayerName, text); } } Am incercat mai multe variante si cu ProxDetector dar atunci scrie de 2 ori in chat, prima data cu culoare pe care o selectezi si dupa cu culoare alba... P.S Am definit tot si nu primesc nicio eroare la compilare ..
  13. Gata , mrs :>
  14. Salutare bugged , cum as putea face ca atunci cand o masina intra intr-o zona cum ar fi PNS sa treaca prin celelalte masini (nocollisions) cum ar fii pe BUGGED acolo la PNS .. . E ca la safezone sau ?
  15. Either no file name was submitted, or the file size exceeded the maximum size permitted Nu iti zice nimic ? daca nu ai host la phpmyadmin ai o limita maxina de 2 mb pt baza de date daca e mai mare de 2 mb nu se baga ... Verifica daca ai creata baza de date din phpmyadmin exact ca cea de la server (numele sa fie fix)
  16. Edit : Rezolvat , multumesc celor care au postat :).
  17. Sorry pentru 2xpost dar inca nu am gasit cum sa fac la baza de date ..
  18. Bun deci am creat variabila am adaugat-o in comanda in loc de 'sendername' si in baza de date nu dau de cap , am incercat doar atat fara sa fac nimic in baza de date , totul merge bine nu se mai incurca dar acum daca cumperi casa cu id-ul 4 iti da casa cu id-ul 5 si tot asa ...
  19. Si in baza de date trebuie sa modific ceva ?
  20. Am o problema la clanuri si la case . Separat merg foarte bine dar atunci cand esti intr-un clan si detii o casa intr-un fel nu o mai detii pentru ca la numele de la casa se pune tot numele cu tot cu tag-ul de la clan si nu mai poti face nimic ... daca imi puteti zice cum sa fac sa nu se mai puna tag-ul si la casa atunci cand esti intr-un clan .. P.S server-ul este pe mysql si procesorul de comenzi e ZCMD , mai jos aveti comanda /buyhouse CMD:buyhouse(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai."); if(IsPlayerConnected(playerid)) { new Float:oldposx, Float:oldposy, Float:oldposz,string[100],playername[MAX_PLAYER_NAME],sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, sizeof(playername)); GetPlayerPos(playerid, oldposx, oldposy, oldposz); for(new h = 1; h < sizeof(HouseInfo); h++) { if(PlayerToPoint(2.0, playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0) { if(PlayerInfo[playerid][pLevel] < HouseInfo[h][hLevel]) { format(string, sizeof(string), "You must be Level %d to purchase this.", HouseInfo[h][hLevel]); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } if(PlayerInfo[playerid][pPhousekey] != 999 && strcmp(GetName(playerid), HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0) return SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: You already own a house, type /sellhouse if you want to buy this one."); if(GetPlayerCash(playerid) >= HouseInfo[h][hValue]) { InHouse[playerid] = h; PlayerInfo[playerid][pPhousekey] = HouseInfo[h][hID]; PlayerInfo[playerid][pRented] = -1; HouseInfo[h][hOwned] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(HouseInfo[h][hOwner], sendername, 0, strlen(sendername), 255); GivePlayerCash(playerid,-HouseInfo[h][hValue]); SetPlayerInterior(playerid,HouseInfo[h][hInterior]); SetPlayerPos(playerid,HouseInfo[h][hExitx],HouseInfo[h][hExity],HouseInfo[h][hExitz]); SetPlayerVirtualWorld(playerid,HouseInfo[h][hVirtual]); GameTextForPlayer(playerid, "~w~Welcome Home~n~You can exit at any time by moving to this door and press enter", 5000, 3); PlayerInfo[playerid][pInt] = HouseInfo[h][hInterior]; PlayerInfo[playerid][pLocal] = h; SendClientMessage(playerid, COLOR_WHITE, "Congratulations, on your new Purchase !"); SendClientMessage(playerid, COLOR_WHITE, "Type /help to review the new property help section !"); Update(playerid,pCashx); Update(playerid,pPhousekeyx); new str2[256]; format(str2,sizeof(str2),"UPDATE `houses` SET `Owned`='1',`Owner`='%s' WHERE `ID`='%d'",sendername,HouseInfo[h][hID]); mysql_query(SQL,str2); OnPropTextdrawUpdate(1,h); return 1; } else { SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: You don't have the cash for that."); return 1; } } } } return 1; }
  21. Ai cumva un model cum as putea pune ? :-?
  22. Salut bugged , am o problema : Am gamemode-ul Saints v1.3 , iar war-urile sunt in acealasi virtual world ( 0 ) , cum as putea sa le pun in alt virtual world cand cineva da /attack ?
  23. Nu inteleg ce vrei sa zici aici ... Am gamemode-ul ăsta http://forum.bugged.ro/topic/191786-gamemode-frumos/
  24. CMD:getmats(playerid, params[]) { if(gPlayerLoggeduserbar == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if(PlayerInfouserbar[pJob] != 9) return SendClientMessage(playerid,COLOR_WHITE, "{FFB870}You are not an Arms Dealer."); if(IsPlayerInRangeOfPoint(playerid, 5, 597.5396,-1246.9562,18.2512)) { if(GetPlayerCash(playerid) >= 500) { SetPlayerCheckpoint(playerid, 1713.1602,916.2577,10.8203, 10.0); SendClientMessage(playerid, COLOR_WHITE, "Mergi la checkpoint pentru a colecta materialele."); MatsHoldinguserbar = 1; CPuserbar = 6901; GivePlayerCash(playerid,-500); Update(playerid, pCashx); } else return SendClientMessage(playerid, COLOR_WHITE, "Nu ai $500."); } else { SendClientMessage(playerid, COLOR_WHITE, "{FEC3AC}Mergi la checkpoint pentru a colecta materialele."); SetPlayerCheckpoint(playerid,597.5396,-1246.9562,18.2512, 10.0); GotoMatsuserbar = 1; } } return 1; } C:\Users\Ade\Desktop\iDeal RPG\gamemodes\ro-rp.pwn(13976) : error 035: argument type mismatch (argument 2) C:\Users\Ade\Desktop\iDeal RPG\gamemodes\ro-rp.pwn(13979) : error 028: invalid subscript (not an array or too many subscripts): "PlayerInfouserbar" C:\Users\Ade\Desktop\iDeal RPG\gamemodes\ro-rp.pwn(13979) : warning 215: expression has no effect C:\Users\Ade\Desktop\iDeal RPG\gamemodes\ro-rp.pwn(13979) : error 001: expected token: ";", but found "]" C:\Users\Ade\Desktop\iDeal RPG\gamemodes\ro-rp.pwn(13979) : error 029: invalid expression, assumed zero C:\Users\Ade\Desktop\iDeal RPG\gamemodes\ro-rp.pwn(13979) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors.
  25. Am nevoie si de o comanda de tip-ul /getmats ca pe bugged , adica dai /getmats dintr-o locatie si sa te duci in alta locatie si sa iti dea mats si bani . :D Doar comanda de baza daca poti sa mi-o faci , restul adica locatiile le pun eu fara probleme .
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.

moduri samp