Jump to content

Shad0wdpbgd

Membru
  • Posts

    207
  • Joined

  • Last visited

Everything posted by Shad0wdpbgd

  1. pai cauta asta la ctrl f in gm: "progres job %s" si o sa gasesti acolo cred, nush ce ai tu in gm acolo
  2. pai de unde sa stiu eu frate? e gamemodeu meu?
  3. uita te in baza de date acolo unde ai tu ala cu skillu la fish si vezi daca se transmit corect pur si simplu
  4. dupa ceva timp fara sa fac ceva neaparat, si daca stau pe loc, si daca merg cu masina, si daca sunt afk, pnm intelegi tu
  5. [14:03:27] [debug] AMX backtrace: [14:03:27] [debug] #0 0006a848 in public SSCANF_OnPlayerDisconnect (playerid=0, reason=2) at C:\Wing RPG\gamemodes\Wing.pwn:1040 [14:03:27] [debug] #1 00052034 in public _y_utils_OnPlayerDisconnect (playerid=0, reason=2) at C:\Wing RPG\pawno\include\sscanf2.inc:266 [14:03:27] [debug] #2 0000e1e0 in OnPlayerDisconnect (playerid=0, reason=2, ... <1073741821 arguments>) at C:\Wing RPG\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\y_utils.inc:321 [14:03:27] [debug] #3 00014028 in public OnPlayerDisconnect (... <2 arguments>) at C:\Wing RPG\pawno\include\YSI\..\YSI_Data\..\YSI_Coding\..\YSI_Internal\y_cgen.inc:114 [14:03:27] [debug] #4 native Kick () from samp-server.exe [14:03:27] [debug] #5 0009a090 in KickEx (playerid=0) at C:\Wing RPG\gamemodes\Wing.pwn:3917 [14:03:27] [debug] #6 0009bb58 in LoginTimer (playerid=0) at C:\Wing RPG\gamemodes\Wing.pwn:3992 [14:03:27] [debug] #7 0009bb28 in public @Yj:LoginTimer@_yT (__r=0, playerid=0) at C:\Wing RPG\gamemodes\Wing.pwn:3990
  6. public OnPlayerConnect(playerid) { ResetVar(playerid); SetSpawnInfo(0, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0); LoadPlayerTD(playerid); new string[128]; mysql_format(SQL, string, sizeof(string), "SELECT `Name` FROM `server_accounts` WHERE `Name` = '%e'", GetName(playerid)); mysql_tquery(SQL, string, "CheckPlayerAccount", "i", playerid); return 1; } Dialog:DIALOG_GENDER(playerid, response, listitem, inputtext[]) { switch(response) { case 0: { PlayerInfo[playerid][pGender] = 0; SetSpawnInfo(playerid, NO_TEAM, 12, 609.6233,-1458.4764,14.3766, -1, -1, -1, -1, -1, -1, -1); SCM(playerid, COLOR_RED, "Registration: {FFFFFF}Your gender is Female."); mysqlQuery("UPDATE `server_accounts` SET `Gender` = '0' WHERE `ID` = '%d'", PlayerInfo[playerid][pSQLID]); PlayerInfo[playerid][pSkin] = 12; mysqlQuery("UPDATE `server_accounts` SET `Skin` = '12' WHERE `ID` = '%d'", PlayerInfo[playerid][pSQLID]); UpdateLevelBar(playerid); } case 1: { PlayerInfo[playerid][pGender] = 1; SetSpawnInfo(playerid, NO_TEAM, 250, 609.6233,-1458.4764,14.3766, -1, -1, -1, -1, -1, -1, -1); SCM(playerid, COLOR_RED, "Registration: {FFFFFF}You gender is Male."); mysqlQuery("UPDATE `server_accounts` SET `Gender` = '1' WHERE `ID` = '%d'", PlayerInfo[playerid][pSQLID]); PlayerInfo[playerid][pSkin] = 250; mysqlQuery("UPDATE `server_accounts` SET `Skin` = '250' WHERE `ID` = '%d'", PlayerInfo[playerid][pSQLID]); UpdateLevelBar(playerid); } } ShowTD(playerid); PlayerInfo[playerid][pLogged] = 1; ClearChat(playerid); TogglePlayerSpectating(playerid, 0); SCMF(playerid, -1, "Welcome to the server, %s!", GetName(playerid)); return true; }
  7. Salut, de la un timp pe serverul meu (localhost) tot primesc server closed the connection, ma uit in consola si nu scrie absolut nimic, decat ca x has left the game si atat. nu inteleg dc, stie cineva un motiv?
  8. am sters-o, dar tot nu imi apare dialogu sa ma loghez/inregistrez...
  9. pai si ce trebuie sa fac mai exact?
  10. ma poate ajuta cineva pls?
  11. Salut, am doua probleme. 1. am doua warning-uri (warning 219: local variable "CheckPlayerAccount" shadows a variable at a preceding level), si 2. nu imi apare dialogul sa ma inregistrez/loghez COD: public OnPlayerRequestClass(playerid, classid) { TogglePlayerSpectating(playerid, true); gQuery[0] = (EOS); inline checkBan() { if(!cache_num_rows()) { // Login WARNING inline CheckPlayerAccount() { gQuery[0] = (EOS); mysql_format(SQL, gQuery, 256, "SELECT * FROM `server_bans_ip` WHERE `PlayerIP` = '%d' AND `Active` = '1' LIMIT 1", getIp(playerid)); mysql_pquery(SQL, gQuery, "CheckPlayerBanIP", "d", playerid); } return true; } new adminName[MAX_PLAYER_NAME], reason[64], date[64]; cache_get_field_content(0, "AdminName", adminName, SQL, MAX_PLAYER_NAME); cache_get_field_content(0, "Reason", reason, SQL, 64); cache_get_field_content(0, "Date", date, SQL, 64); // Check Permanent Ban if(cache_get_field_content_int(0, "Permanent") != 0) { ClearChat(playerid); SCMF(playerid, COLOR_CLIENT, "SERVER: {FFFFFF}You are banned on this server by %s, reason: %s.", adminName, reason); SCMF(playerid, COLOR_CLIENT, "SERVER: {FFFFFF}You are banned from %s.", date); SCM(playerid, COLOR_CLIENT, "SERVER: {FFFFFF}This ban is permanent, meaning that it will never expire."); defer KickEx(playerid); return true; } // Check Temporar Ban if(cache_get_field_content_int(0, "Days") > gettime()) { ClearChat(playerid); new year, month, day, hour, minute, second; TimestampToDate(cache_get_field_content_int(0, "Days"), year, month, day, hour, minute, second, 2); SCMF(playerid, COLOR_CLIENT, "SERVER: {FFFFFF}You have been banned by %s, reason: %s.", adminName, reason); SCMF(playerid, COLOR_CLIENT, "SERVER: {FFFFFF}You are banned from %s to %02d:%02d:%02d : %02d/%02d/%d.", date, hour, minute, second, day, month, year); defer KickEx(playerid); return true; } mysql_format(SQL, gQuery, 256, "SELECT * FROM `server_bans_ip` WHERE `PlayerIP` = '%d' AND `Active` = '1' LIMIT 1", getIp(playerid)); mysql_pquery(SQL, gQuery, "CheckPlayerBanIP", "d", playerid); // Disable Ban mysql_format(SQL, gQuery, 256, "UPDATE `server_bans` SET `Active` = '0' WHERE `ID` = '%d'", cache_get_field_content_int(0, "ID")); mysql_tquery(SQL, gQuery); return true; } // Check Ban mysql_format(SQL, gQuery, 256, "SELECT * FROM `server_bans` WHERE `PlayerName` = '%s' AND `Active` = '1' LIMIT 1", GetName(playerid)); mysql_pquery_inline(SQL, gQuery, using inline checkBan, ""); return 1; } function CheckPlayerBanIP(playerid) { if(!cache_num_rows()) { gQuery[0] = (EOS); WARNING inline CheckPlayerAccount() { if(!cache_num_rows()) return Dialog_Show(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Login", "Welcome to Wing RPG, %s.\nType a password to register your account:", "Register", "Cancel", GetName(playerid)); new lastLogin[64]; cache_get_field_content(0, "LastLogin", lastLogin, SQL, 64); Dialog_Show(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "Welcome back to Wing RPG, %s.\nType your password to login:\n\nLast login: %s", "Login", "Cancel", GetName(playerid), lastLogin); //PlayerInfo[playerid][pLoginTimer] = defer LoginTimer(playerid); return true; } mysql_format(SQL, gQuery, sizeof gQuery, "SELECT * FROM `server_accounts` WHERE `Name` = '%s' LIMIT 1", GetName(playerid)); mysql_pquery_inline(SQL, gQuery, using inline CheckPlayerAccount, ""); return true; } new AdminName[MAX_PLAYER_NAME], Reason[64], Date[32]; cache_get_field_content(0, "AdminName", AdminName, SQL, MAX_PLAYER_NAME); cache_get_field_content(0, "Reason", Reason, SQL, 64); cache_get_field_content(0, "Date", Date, SQL, 32); SCMF(playerid, COLOR_CLIENT, "SERVER: {FFFFFF}IP %s is banned on this server by %s, reason: %s.", getIp(playerid), AdminName, Reason); SCMF(playerid, COLOR_CLIENT, "SERVER: {FFFFFF}You are banned from %s.", Date); SCM(playerid, COLOR_CLIENT, "SERVER: {FFFFFF}This ban is permanent, meaning that it will never expire."); return true; } Se poate sa ma ajute cineva?
  12. Dialog:DIALOG_REPORT_CHEATER(playerid, response, listitem, inputtext) { if(!response) return true; if(Iter_Count(Reports) >= MAX_REPORTS) return SCM(playerid, COLOR_LGREEN, "There are too many reports in queue. Please wait!"); if(Iter_Contains(ServerAdmins, playerid)) return SCM(playerid, COLOR_WHITE, "You are admin! You can't use this command."); if(!Iter_Count(ServerAdmins)) return SCM(playerid, COLOR_GREY, "There are no admins connected."); if(PlayerInfo[playerid][pReportMute] > gettime()) return SCMF(playerid, COLOR_LGREEN, "You need to wait %d seconds before using this command again.", (PlayerInfo[playerid][pReportMute] - gettime())); //if(isnull(inputtext)) return Dialog_Show(playerid, DIALOG_REPORT_CHEATER, DIALOG_STYLE_INPUT, "Report type: Cheater", "Scrie mai jos numele sau id-ul jucatorului care foloseste cheats:", "Select", "Close"); new userid = INVALID_PLAYER_ID; //if(sscanf(params, "u", userid)) return Dialog_Show(playerid, DIALOG_REPORT_CHEATER, DIALOG_STYLE_INPUT, "Report type: Cheater", "Scrie mai jos numele sau id-ul jucatorului care foloseste cheats:", "Select", "Close"); if(!IsPlayerLogged(userid)) return Dialog_Show(playerid, DIALOG_REPORT_CHEATER, DIALOG_STYLE_INPUT, "Report type: Cheater", "Scrie mai jos numele sau id-ul jucatorului care foloseste cheats:\n{AFAFAF}* Jucatorul nu este conectat.", "Select", "Close"); if(userid == playerid) return Dialog_Show(playerid, DIALOG_REPORT_CHEATER, DIALOG_STYLE_INPUT, "Report type: Cheater", "Scrie mai jos numele sau id-ul jucatorului care foloseste cheats:\n{AFAFAF}* Nu poti sa iti dai singur report.", "Select", "Close"); if(Iter_Contains(ServerAdmins, userid)) return Dialog_Show(playerid, DIALOG_REPORT_CHEATER, DIALOG_STYLE_INPUT, "Report type: Cheater", "Scrie mai jos numele sau id-ul jucatorului care foloseste cheats:\n{AFAFAF}* Nu poti sa raportezi un admin.", "Select", "Close"); new id = (Iter_Count(Reports) + 1); ReportInfo[id][reportID] = playerid; ReportInfo[id][reportPlayer] = userid; ReportInfo[id][reportType] = REPORT_TYPE_CHEATER; ReportInfo[id][reportTimer] = defer ExpirationReport(id); format(ReportInfo[id][reportText], 128, "%s is maybe using cheats.", GetName(userid)); Iter_Add(Reports, id); SCM(playerid, COLOR_YELLOW, "Jucatorul a fost raportat cu succes catre admini! Daca se suspecteaza ca foloseste cheats, o sa fie sanctionat in cel mai scurt timp posibil!"); SendAdmin(COLOR_DARKNICERED, "Report by %s (ID: %d, Level: %d): %s", GetName(playerid), playerid, PlayerInfo[playerid][pLevel], ReportInfo[id][reportText]); PlayerInfo[playerid][pReportMute] = (gettime() + 120); return true; } liniile cu // sunt cu erori
  13. error 017: undefined symbol "params"
  14. Shad0wdpbgd

    Erori

    Salut, am aceste probleme. C:\Wing RPG\gamemodes\Wing.pwn(3208) : error 028: invalid subscript (not an array or too many subscripts): "inputtext" C:\Wing RPG\gamemodes\Wing.pwn(3208) : warning 215: expression has no effect C:\Wing RPG\gamemodes\Wing.pwn(3208) : error 001: expected token: ";", but found "]" C:\Wing RPG\gamemodes\Wing.pwn(3208) : error 029: invalid expression, assumed zero C:\Wing RPG\gamemodes\Wing.pwn(3208) : fatal error 107: too many error messages on one line if(isnull(inputtext)) return Dialog_Show(playerid, DIALOG_REPORT_CHEATER, DIALOG_STYLE_INPUT, "Report type: Cheater", "Scrie mai jos numele sau id-ul jucatorului care foloseste cheats:", "Select", "Close"); + C:\Wing RPG\gamemodes\Wing.pwn(3211) : error 035: argument type mismatch (argument 1) if(sscanf(inputtext, "u", userid)) return Dialog_Show(playerid, DIALOG_REPORT_CHEATER, DIALOG_STYLE_INPUT, "Report type: Cheater", "Scrie mai jos numele sau id-ul jucatorului care foloseste cheats:", "Select", "Close");
  15. Salut, am o problema la licente. Mereu cand intru intr-un avion sau barca, imi zice ca nu am licenta de driving, daca imi dau licenta de driving, merge sa conduc si masina, sa pilotez si avionu, si sa merg si cu barca. Stie cineva de ce? COD: public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(!ispassenger) { if(!isBike(GetVehicleModel(vehicleid)) && PlayerInfo[playerid][pDrivingLic] == 0) { ClearAnimations(playerid); return SCM(playerid, COLOR_GREY, "You need a driving license to use this vehicle."); } if(isBoat(GetVehicleModel(vehicleid)) && PlayerInfo[playerid][pBoatLic] == 0) { ClearAnimations(playerid); return SCM(playerid, COLOR_GREY, "You need a boat license use this boat."); } if(isPlane(GetVehicleModel(vehicleid)) && PlayerInfo[playerid][pFlyLic] == 0) { ClearAnimations(playerid); return SCM(playerid, COLOR_GREY, "You need a fly licenses to use this plane."); } } return 1; }
  16. SetPlayerPosEx(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]); linia cu eroarea aia
×
×
  • 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.