Jump to content
  • 0

PROBLEMA argument type mismatch (argument 2)


Fashion

Question

Salut sa-mp.ro , am si eu o problema la o comanda :

Ms anticipat. , pr

C:\Users\Andrei\Desktop\Server samp\gamemodes\ro-rpg.pwn(20303) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
CMD:pin(playerid,params[])
{
	if(IsPlayerConnected(playerid))
	{
	    if(PlayerInfo[playerid][pPinn] == 0 ) SendClientMessage(playerid,COLOR_WHITE,"Nu ti-ai setat pinul , foloseste comanda /pin.");
	    else
	    {
	        new pinnr;
	        if(sscanf(params, "i",pinnr)) return SendClientMessage(playerid, COLOR_GREY,"Sintaxa: {FFFFFF}/pin <number(ex: 1234)>");
	        if(pinnr<1000 ||pinnr >9999) SendClientMessage(playerid, COLOR_WHITE,"Pinul tau trebuie sa aibe 4 cifre");
			else
			{
			    if(PlayerInfo[playerid][pPinnLogin]==1) SendClientMessage(playerid,COLOR_WHITE,"Ti-ai confirmat deja pinul pentru acest login.");
			    else
			    {
			        if(PlayerInfo[playerid][pPinn]!=pinnr)
					{
						SendClientMessage(playerid,COLOR_WHITE,"Ti-ai gresit pinul.");
						new kickpin[256],sendername[256];
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(kickpin,sizeof(kickpin),"AdmCmd: Jucatorul %s a primit kick pentru ca si-a gresit pinul.",sendername);
						SendClientMessage(COLOR_RED,kickpin);
						Kick(playerid);
					}
					else //linia problema
					{
					    SendClientMessage(playerid,COLOR_WHITE,"Felicitari!Acum ai full acces.");
					    PlayerInfo[playerid][pPinnLogin]=1;
					    new strgl[256];
	  	    	        format(strgl,sizeof(strgl),"UPDATE users SET `PinnLogin`='1' WHERE `ID`='%d'",pinnr,PlayerInfo[playerid][pSQLID]);
		     		    mysql_query(SQL,strgl);

	 				}
			    }
			}
		}
	}
	return 1;
}

 

Edited by Fashion
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Ne-ai specificat linia gresita,

 

SendClientMessage(COLOR_RED,kickpin);   asta e cea problema

ai uitat de playerid

SendClientMessage(playerid,COLOR_RED,kickpin);
  • Upvote 1

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.