Jump to content
  • 0

argument type mismatch


GEORGIKAA

Question

salut, recent am incercat sa creez un gm de la 0 cu niste chestii noi, precum easyDialogs. am intampinat acum o problema la dialog_register si nu ma prind care-i schema, ce am gresit aici

D:\server\pawno\include\easyDialog.inc(95) : error 035: argument type mismatch (argument 4)
D:\server\pawno\include\easyDialog.inc(99) : error 035: argument type mismatch (argument 4)

if(strlen(inputtext) < 8 || strlen(inputtext) > 64)
		return Dialog_Show(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Register", "Invalid characters lenght (8-64). Type again a valid password", "Register", "Quit");

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
if(!strlen(inputtext) || strlen(inputtext) < 6 || strlen(inputtext) > 24) {
	
 	static const fmt_str[] = "\n\n%s\n\nInvalid characters lenght (6-24). Type again a valid password\n\n";
	new string[sizeof fmt_str + (-2 + MAX_PLAYER_NAME)];
	format(string, sizeof string, fmt_str, GetPlayerName(playerid));
	ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Register", string, "Register","Quit");
}


Uite cum e corect + iti dau o metoda mai buna, mai optimizata sa ii zic asa

Edited by Khain Developer
[ Anti Flood Pack ] / Click [ Pugb SA:MP ] Click / [ TD Autorizatie ] Click
[ Created dm zone ] Click / [ Salvare vreme si timp ] Click [ Statistica a serverului ] Click
[ Sistema duel ] Click [ TD Registrare/Autorizatie ] Click [ Sistema kill/killed by ] Click
[ Sistema data si ora Click /  [ GM Anticheat ] Click   /  [ Schimbarea mersului ] Click
[ Save Camera ] Click  [ Sitema Concurs ] Click [ Projector pentru elicopter ] Click /
[ DM Zona ] Click / [ Folosirea textelor lungi ] Click / [Khain RPG] Click  / Antisobeit Click
Link to comment
Share on other sites

  • 0
Acum 5 ore, Khain Developer a spus:
if(!strlen(inputtext) || strlen(inputtext) < 6 || strlen(inputtext) > 24) {
	
 	static const fmt_str[] = "\n\n%s\n\nInvalid characters lenght (6-24). Type again a valid password\n\n";
	new string[sizeof fmt_str + (-2 + MAX_PLAYER_NAME)];
	format(string, sizeof string, fmt_str, GetPlayerName(playerid));
	ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Register", string, "Register","Quit");
}


Uite cum e corect + iti dau o metoda mai buna, mai optimizata sa ii zic asa

sincer sa fiu, vreau sa incerc ceva nou precum easyDialog, vreau doar sa stiu ce e gresit acolo pt ca nu ma prind

+ de optimizat nu o sa ma ocup, e un gamemode facut doar pt mine, lucrez la el doar cand ma plictisesc

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By Wreeper
      Linia in cauza: SetPlayerName(id, amount);
      Daca scot chestia asta, merge total perfect functia..
      De ce se intampla asta?
    • By Wreeper
      YCMD:unjail(playerid, params[], help) {
          if(!playerVariables[playerid][pAdmin]) return adminOnly(playerid);
          new id,reason[128];
          
          if(sscanf(params, "uis[128]", id,reason)) return sendUsage(playerid, "/unjail [name/playerid] [reason]");
          if(!isPlayerLogged(id) || id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Player not connected.");
          if(playerVariables[id][pJailTime] == 0) return SCM(playerid, COLOR_WHITE, "This player is not in jail.");
          ResetWeapons(id);
          WantedPoints[id] = 0;
          playerVariables[id][pJailed] = 0;
          playerVariables[id][pJailTime] = 0;
          SpawnPlayer(id);
          SendAdminMessage(COLOR_RED2, "Jail: %s was unjailed by %s, reason: %s.", GetName(id), GetName(playerid),reason);
          SCMF(id, COLOR_RED2, "Administrator %s has released you from jail.", GetName(playerid));
          
          UpdateVar( id, "Jailed", playerVariables[ id ][ pJailed ] );
          UpdateVar( id, "JailTime", playerVariables[ id ][ pJailTime ] );
          return 1;
      }
       
      De ce se intampla asa ceva?
      Eroare: (18861) : error 035: argument type mismatch (argument 3)
    • By Sile Bandit
      Nu inteleg de ce imi apare acest warning
      am facut o noua variabila new MySQL:sqldb;   si tot imi apare acest warning
      ma puteti ajuta?
      Imagine : https://imgur.com/a/pwDnHGV
    • By VAurel
      Salut, am incercat sa modific functia de VipNameVehicle din gamemode-ul meu si primesc o erroare despre care nu imi dau seama cum sa o rezolv, daca aveti vreo idee, orice parere este acceptata si bine primita  
      Cod : 
      function VIPNameVehicle(vehicleid) { new arrayid = OwnedVeh(vehicleid); veh_ArrayID(vehicleid); if(strlen(CarInfo[arrayid][cVipname]) > 3 && CarInfo[arrayid][cVipShow] == 1) { new string[100]; if(IsValidDynamicObject(vText[vehicleid])) DestroyDynamicObject(vText[vehicleid]); vText[vehicleid] = CreateDynamicObject(19327, CarInfo[arrayid][cVX],CarInfo[arrayid][cVY],CarInfo[arrayid][cVZ],CarInfo[arrayid][cVRX],CarInfo[arrayid][cVRY],CarInfo[arrayid][cVRZ],-1,-1,-1,30,30); format(string, 100, "{%s}%s", CarInfo[arrayid][cVipnamecolor], CarInfo[arrayid][cVipname]); SetDynamicObjectMaterialText(vText[vehicleid], 0, string, 50, "Arial", CarInfo[arrayid][cVipSize], 1, 0xFFFFFFFF, 0, 1); new model = CarInfo[arrayid][cModel]; if(model == 411) { AttachDynamicObjectToVehicle(vText, vehicleid, 0.0, 0.0, 0.7, 0.0, 0.0, 0.0); // 1585 } else if(model == 560) { AttachDynamicObjectToVehicle(vText, vehicleid, 0.0, 0.0, 0.8, 0.0, 0.0, 0.0); // 1589 } else if(model == 541) { AttachDynamicObjectToVehicle(vText, vehicleid, 0.0, -0.2, 0.62, 0.0, 0.0, 0.0); //1593 } else if(model == 562) { AttachDynamicObjectToVehicle(vText, vehicleid, 0.0, -0.4, 0.75, 0.0, 0.0, 0.0); // 1597 } else if(model == 451) { AttachDynamicObjectToVehicle(vText, vehicleid, 0.0, -0.5, 0.55, 0.0, 0.0, 0.0); // 1601 } } return 1; } Errori : 
      gamemode.pwn(1585) : error 035: argument type mismatch (argument 1)
      gamemode.pwn(1589) : error 035: argument type mismatch (argument 1)
      gamemode.pwn(1593) : error 035: argument type mismatch (argument 1)
      gamemode.pwn(1597) : error 035: argument type mismatch (argument 1)
      gamemode.pwn(1601) : error 035: argument type mismatch (argument 1)
      Randurile cu errorile le-am trecut in cod, multumesc anticipat.
       
    • By Ale3x
      Salut, primesc aceasta eroare si nu imi pot da seama cum sa o rezolv. Multumesc anticipat.
      eroare: 
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.