Jump to content

Shad0wdpbgd

Membru
  • Posts

    207
  • Joined

  • Last visited

Everything posted by Shad0wdpbgd

  1. Salut, de data asta, am o problema mai ciudata, care nu am mai intalnit o pana acum. Adica cand dau comanda prima data nu merge, dar daca o spamez de multe ori pana la urma merge. Aceasta este comanda: CMD:trylucky(playerid, params[]) { new amount, string[64], rand = random(50); if(!PlayerToPoint(2.0, playerid, 386.7224,-1817.7662,7.8409)) { SetPlayerCheckpointEx(playerid, 386.7224,-1817.7662,7.8409, 5.0); CP[playerid] = 678; SCM(playerid, COLOR_GREY, "You are not at the right place."); SCM(playerid, COLOR_YELLOW, "Ti-am pus un checkpoint catre locatie, du-te la el!"); return 1; } if(sscanf(params, "i", amount)) return SCM(playerid, -1, "{CECECE}USAGE: {FFFFFF}/trylucky <amount>"); if(amount < 10000) return SCM(playerid, COLOR_GREY, "Suma trebuie sa fie de minim $10.000."); if(GetPlayerCash(playerid) < amount) return SCM(playerid, -1, "Nu ai aceasta suma de bani."); switch(rand) { case 0: { format(string, sizeof(string), "You lost $%s.", FormatNumber(amount)); SCM(playerid, COLOR_GREEN, string); GivePlayerCash(playerid, -amount); Update(playerid, pCashx); } case 1: { format(string, sizeof(string), "Congratulations, %s! You won $%s.", GetName(playerid), FormatNumber(amount+amount)); SCM(playerid, COLOR_GREEN, string); GivePlayerCash(playerid, amount+amount); Update(playerid, pCashx); } } return 1; }
  2. adica gen eu facusem aia doar ca nu am pus BoxSpeedo[0] am lasat asa BoxSpeedo si atata
  3. te pup bro merge totul perfect
  4. Salut, am aceste erori si nu stiu de ce.. daca poate sa ma ajute cineva, va rog. COD: BoxSpeedo = CreatePlayerTextDraw(playerid, 556.500000, 357.562500, "box"); PlayerTextDrawLetterSize(playerid, BoxSpeedo, 0.000000, 0.849997); PlayerTextDrawTextSize(playerid, BoxSpeedo, 0.000000, 138.000000); PlayerTextDrawAlignment(playerid, BoxSpeedo, 2); PlayerTextDrawColor(playerid, BoxSpeedo, -1); PlayerTextDrawUseBox(playerid, BoxSpeedo, 1); PlayerTextDrawBoxColor(playerid, BoxSpeedo, 255); PlayerTextDrawSetShadow(playerid, BoxSpeedo, 0); PlayerTextDrawBackgroundColor(playerid, BoxSpeedo, 255); PlayerTextDrawFont(playerid, BoxSpeedo, 1); PlayerTextDrawSetProportional(playerid, BoxSpeedo, 1); // linia cu problema BoxSpeedo[1] = CreatePlayerTextDraw(playerid, 556.500000, 292.812500, "box"); PlayerTextDrawLetterSize(playerid, BoxSpeedo[1], 0.000000, 0.849997); PlayerTextDrawTextSize(playerid, BoxSpeedo[1], 0.000000, 138.000000); PlayerTextDrawAlignment(playerid, BoxSpeedo[1], 2); PlayerTextDrawColor(playerid, BoxSpeedo[1], -1); PlayerTextDrawUseBox(playerid, BoxSpeedo[1], 1); PlayerTextDrawBoxColor(playerid, BoxSpeedo[1], 255); PlayerTextDrawSetShadow(playerid, BoxSpeedo[1], 0); PlayerTextDrawBackgroundColor(playerid, BoxSpeedo[1], 255); PlayerTextDrawFont(playerid, BoxSpeedo[1], 1); PlayerTextDrawSetProportional(playerid, BoxSpeedo[1], 1); BoxSpeedo[2] = CreatePlayerTextDraw(playerid, 487.500000, 293.250000, "box"); PlayerTextDrawLetterSize(playerid, BoxSpeedo[2], 0.000000, 8.050002); PlayerTextDrawTextSize(playerid, BoxSpeedo[2], 625.000000, 0.000000); PlayerTextDrawAlignment(playerid, BoxSpeedo[2], 1); PlayerTextDrawColor(playerid, BoxSpeedo[2], -1); PlayerTextDrawUseBox(playerid, BoxSpeedo[2], 1); PlayerTextDrawBoxColor(playerid, BoxSpeedo[2], 149); PlayerTextDrawSetShadow(playerid, BoxSpeedo[2], 0); PlayerTextDrawBackgroundColor(playerid, BoxSpeedo[2], 65426); PlayerTextDrawFont(playerid, BoxSpeedo[2], 1); PlayerTextDrawSetProportional(playerid, BoxSpeedo[2], 1); SpeedD = CreatePlayerTextDraw(playerid, 522.500000, 291.937500, "Speedometer"); PlayerTextDrawLetterSize(playerid, SpeedD, 0.222499, 0.996250); PlayerTextDrawTextSize(playerid, SpeedD, -1.000000, 0.000000); PlayerTextDrawAlignment(playerid, SpeedD, 1); PlayerTextDrawColor(playerid, SpeedD, -1); PlayerTextDrawSetShadow(playerid, SpeedD, 0); PlayerTextDrawSetOutline(playerid, SpeedD, 1); PlayerTextDrawBackgroundColor(playerid, SpeedD, 255); PlayerTextDrawFont(playerid, SpeedD, 2); PlayerTextDrawSetProportional(playerid, SpeedD, 1); PlayerText: BoxSpeedo, PlayerText: BoxSpeedo[1], PlayerText: BoxSpeedo[2], PlayerText: SpeedD, ERORI: D:\Downloads\burned.ro (2)\burned.ro\gamemodes\wa-rpgtut.pwn(719) : error 021: symbol already defined: "BoxSpeedo" (linie: PlayerText: BoxSpeedo[1], PlayerText: BoxSpeedo[2], PlayerText: SpeedD, ) C:\burned.ro (2)\burned.ro\pawno\include\systems.inc(5748) : error 028: invalid subscript (not an array or too many subscripts): "BoxSpeedo" C:\burned.ro (2)\burned.ro\pawno\include\systems.inc(5748) : warning 215: expression has no effect C:\burned.ro (2)\burned.ro\pawno\include\systems.inc(5748) : error 001: expected token: ";", but found "]" C:\burned.ro (2)\burned.ro\pawno\include\systems.inc(5748) : error 029: invalid expression, assumed zero C:\burned.ro (2)\burned.ro\pawno\include\systems.inc(5748) : fatal error 107: too many error messages on one line
  5. te pup, am rezolvat cu ajutorul tau, aveam timer ul de 60000 milisecunde
  6. am asa: function syncup() daca pun asa: task SyncUp[60000]() imi da 26 de erori ..
  7. Salut, am o problema.. nu se updateaza timer-ul la secunda, am pus acolo langa ora si secundele, dar nu se updateaza la secunda, se updateaza doar la minut, si nu stiu ce are. Daca ma poate ajuta cineva, va rog. gettime(hour,minn,sec); gettime(tmphour, tmpminute, tmpsecond); getdate(Year, Month, Day); new datestr[128], timestr[32]; format(datestr,128,"%02d.%02d.%d", Day, Month, Year); format(timestr,32,"~w~%02d:%02d:%02d",tmphour,tmpminute,tmpsecond); TextDrawSetString(txtTimeDisp,timestr); TextDrawSetString(txtDateDisp,datestr); pls help
  8. Salut, am o problema.. nu se updateaza timer-ul la secunda, am pus acolo langa ora si secundele, dar nu se updateaza la secunda, se updateaza doar la minut, si nu stiu ce are. Daca ma poate ajuta cineva, va rog. gettime(hour,minn,sec); gettime(tmphour, tmpminute, tmpsecond); getdate(Year, Month, Day); new datestr[128], timestr[32]; format(datestr,128,"%02d.%02d.%d", Day, Month, Year); format(timestr,32,"~w~%02d:%02d:%02d",tmphour,tmpminute,tmpsecond); TextDrawSetString(txtTimeDisp,timestr); TextDrawSetString(txtDateDisp,datestr);
  9. @alex2v2 arata acolo cu #include, nu ai a_samp primul include.
  10. Salut, am o problema.. nu se updateaza timer-ul la secunda, am pus acolo langa ora si secundele, dar nu se updateaza la secunda, se updateaza doar la minut, si nu stiu ce are. Daca ma poate ajuta cineva, va rog. gettime(hour,minn,sec); gettime(tmphour, tmpminute, tmpsecond); getdate(Year, Month, Day); new datestr[128], timestr[32]; format(datestr,128,"%02d.%02d.%d", Day, Month, Year); format(timestr,32,"~w~%02d:%02d:%02d",tmphour,tmpminute,tmpsecond); TextDrawSetString(txtTimeDisp,timestr); TextDrawSetString(txtDateDisp,datestr);
  11. Salut, am aceasta problema: nu dispare box-ul, pur si simplu, am facut sa dispara, celalalte textdraw uri dispar, dar box ul nu, nu stiu de ce.. uitati si codul sa vedeti ca am scos: for(new i = 0; i < 3; i++) PlayerTextDrawHide(playerid, LoginPTD[i]); for(new i = 0; i < 2; i++) TextDrawHideForPlayer(playerid, LoginTD[i]); (box ul este LoginTD[0]) As fi recunoscator daca ma ajuta cineva.
  12. Salut, am aceasta eroare, stie cineva cum sa o rezolve? As fi recunoscator, multumesc. error 040: duplicate "case" label (value 17) cod: case 17..35: { amount = random(6) + 13; if(CrateType[i] == 1) amount+= 5; format(string, sizeof(string), "~r~Crate System~w~~h~~n~~n~Step: %d/30~n~~b~%sx PP", 30-CrateTime[i], FormatNumber(amount)); PlayerTextDrawSetString(i, CrateTD, string); if(CrateTime[i] == 0) PlayerInfo[i][pPremiumPoints] += amount, Update(i, pPremiumPoints), PlayerTextDrawHide(i, CrateTD), format(string, sizeof(string), "Felicitari, %s! Ai castigat %s puncte premium.", GetName(i), FormatNumber(amount)); SCM(i, COLOR_YELLOW, string); }
  13. Multumesc frumos, oricum am rezolvat
  14. Salut, am aceasta problema in mysql si nu stiuuuuuuuuu cum sa o rezolv, ma chiorasc aici de juma de ora... COD: gString[0] = EOS; mysql_format(SQL, gString, sizeof(gString), "UPDATE `users` SET `Money`=`Money`+'%d', `Respect`=`Respect`+'%d', `JobGoal`='0' WHERE `JobGoal`>='%d' AND `Status`='0'", rand_money, rand_rp, GOAL_PLAYER); mysql_tquery(SQL, gString, "", ""); EROARE: [00:34:26] Error ID: 1064, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''0' at line 1 [00:34:26] Callback: [00:34:26] gQuery: UPDATE `users` SET `Money`=`Money`+'5758503', `Respect`=`Respect`+'8', `JobGoal`='0' WHERE `JobGoal`>='1000000' AND `Status`='0
  15. Salut, nu stiu de ce, dar in joc la OWNER nu imi apare nimic, e gol.. nu stiu cum sa rezolv Uitati cod-ul: new string[300]; format(string, sizeof string, "{A9C4E4}House ID: {FF0000}%d\n{A9C4E4}Owner: {FF0000}%s\n{A9C4E4}Description: {FF0000}%s\n{A9C4E4}Level: {FF0000}%d\n{A9C4E4}Price: {FF0000}$%s%s", houseid, HouseInfo[houseid][hOwnerName], HouseInfo[houseid][hDescription], HouseInfo[houseid][hLevel], formatNumber(HouseInfo[houseid][hPrice]), (HouseInfo[houseid][hRentPrice] ? rent : "")); HouseInfo[houseid][hText] = CreateDynamic3DTextLabel(string, -1, HouseInfo[houseid][hX], HouseInfo[houseid][hY], HouseInfo[houseid][hZ], 25.0, 0xFFFF, 0xFFFF, 0, 0, 0); HouseInfo[houseid][hPickup] = CreateDynamicPickup((HouseInfo[houseid][hOwnerID] ? 1273 : 1272), 23, HouseInfo[houseid][hX], HouseInfo[houseid][hY], HouseInfo[houseid][hZ], 0, 0); Sorine, fara glume man ca nu s amuzante
  16. ce gluma buna nu mai pot de ras
  17. Shad0wdpbgd

    Bug.

    Salut, nu stiu de ce, dar in joc la OWNER nu imi apare nimic, e gol.. nu stiu cum sa rezolv Uitati cod-ul: new string[300]; format(string, sizeof string, "{A9C4E4}House ID: {FF0000}%d\n{A9C4E4}Owner: {FF0000}%s\n{A9C4E4}Description: {FF0000}%s\n{A9C4E4}Level: {FF0000}%d\n{A9C4E4}Price: {FF0000}$%s%s", houseid, HouseInfo[houseid][hOwnerName], HouseInfo[houseid][hDescription], HouseInfo[houseid][hLevel], formatNumber(HouseInfo[houseid][hPrice]), (HouseInfo[houseid][hRentPrice] ? rent : "")); HouseInfo[houseid][hText] = CreateDynamic3DTextLabel(string, -1, HouseInfo[houseid][hX], HouseInfo[houseid][hY], HouseInfo[houseid][hZ], 25.0, 0xFFFF, 0xFFFF, 0, 0, 0); HouseInfo[houseid][hPickup] = CreateDynamicPickup((HouseInfo[houseid][hOwnerID] ? 1273 : 1272), 23, HouseInfo[houseid][hX], HouseInfo[houseid][hY], HouseInfo[houseid][hZ], 0, 0);
  18. Salut, am aceasta problema la comanda [/skins]. Daca am skin-uri, si sterg din ele, se sterg e ok, cand dau pe ele imi apare ca nu am skin pe slot, dar, problema este ca tot imi apare de ex skin 20 unequipped si nu inteleg de ce deoarece eu am facut sa imi puna none daca sterg un skin. Va rog frumos daca poate sa ma ajute cineva, chiar nu ii dau de cap. COD DIALOGS: switch(dialogid) { case DIALOG_SKIN: { if(!response) return 1; new id = listitem; if(PlayerInfo[playerid][pSkins][id] == -1) return SCM(playerid, COLOR_LGREEN, "Nu ai un skin pe acest slot."); ShowPlayerDialog(playerid, DIALOG_SKIN+1, DIALOG_STYLE_MSGBOX, "My Skins", "Select the action you desire.", "Equip", "Delete"); SetPVarInt(playerid, "skin", id); } case DIALOG_SKIN+1: { new id = PlayerInfo[playerid][pSkins][GetPVarInt(playerid, "skin")]; switch(response) { case 0: { if(GetPVarInt(playerid, "skin") == 0) return SCM(playerid, COLOR_LGREEN, "Nu poti sterge acest skin."); if(GetPlayerSkin(playerid) == id) { PlayerInfo[playerid][pChar] = 250; SetPlayerSkinEx(playerid, 250); UpdateVar(playerid, "CChar", id); } PlayerInfo[playerid][pSkins][GetPVarInt(playerid, "skin")] = -1; save_skin(playerid); SCM(playerid, COLOR_YELLOW, "Skin deleted!"); } case 1: { PlayerInfo[playerid][pChar] = id; SetPlayerSkinEx(playerid, id); UpdateVar(playerid, "CChar", id); SCM(playerid, COLOR_YELLOW, "Skin equiped!"); } } DeletePVar(playerid, "skin"); } COMANDA [/SKINS]: CMD:skins(playerid, params[]) { if(PlayerInfo[playerid][pMember] != 0) return SCM(playerid, COLOR_LGREEN, "Nu poti sa folosesti aceasta comanda deoarece faci parte dintr-o factiune."); new szDialog[512], string[128]; strcat(szDialog, "#\tSkin ID\tStatus\n"); for(new i; i < 10; i++) { if(PlayerInfo[playerid][pSkins][i] == GetPlayerSkin(playerid)) format(string, sizeof(string), "%d\t%d\t{00FF00}Equipped\n", i+1, PlayerInfo[playerid][pSkins][i]); else if(PlayerInfo[playerid][pSkins][i] != -1) format(string, sizeof(string), "%d\t%d\t{B22222}Unequipped\n", i+1, PlayerInfo[playerid][pSkins][i]); else if(PlayerInfo[playerid][pSkins][i] == 1) format(string, sizeof(string), "%d\tnone\t{FF8C00}Free\n", i+1, PlayerInfo[playerid][pSkins][i]); strcat(szDialog, string); } ShowPlayerDialog(playerid, DIALOG_SKIN, DIALOG_STYLE_TABLIST_HEADERS, "My Skins", szDialog, "Select", "Cancel"); return 1; }
  19. bro acm daca o explodez nu imi mai scade nimic
×
×
  • Create New...

Important Information

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. For more details you can also review our Terms of Use and Privacy Policy.