SA-MP Forums Archive
warning 202: number of arguments does not match definition - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning 202: number of arguments does not match definition (/showthread.php?tid=631987)



warning 202: number of arguments does not match definition - turkromeo - 07.04.2017

Код:
warning 202: number of arguments does not match definition

Код:
new sia,Query[512];
	    if(!IsNumeric(inputtext)){sia = GetWeaponIDFromName(inputtext);}else{sia = strval(inputtext);}
		if(!IsValidWeapon(sia)){if(PlayerInfo[playerid][language] == 1){ShowPlayerDialog(playerid,CETE+10,DIALOG_STYLE_INPUT,"{0049FF}«{FFFF00}®{0049FF}»{FFFFFF} Зete Silahı {0049FF}«{FFFF00}®{0049FF}»","Зete Silah ismini veya ıdsini girin","Belirle","İptal");return 1;}else{
	    ShowPlayerDialog(playerid,CETE+10,DIALOG_STYLE_INPUT,"{0049FF}«{FFFF00}®{0049FF}»{FFFFFF} Gang Gun {0049FF}«{FFFF00}®{0049FF}»","Enter the name or ID of the gang gun","Set","Cancel");return 1;}
		}
		if(sia == 35 || sia == 36 || sia == 38)return Dilmesaji(playerid,-1,"{0049FF}«{FFFF00}®{0049FF}»{15FF00} Зete: {FFFFFF}Bu silahı Kullanamazsınız!","{0049FF}«{FFFF00}®{0049FF}»{15FF00} Gang: {FFFFFF}You can not use this weapon!");
		format(Query, sizeof(Query), "UPDATE `ceteler` SET `cetesilah` = '%d' WHERE `ceteid` = '%d'",sia,PlayerInfo[playerid][ceteid]);
		mysql_query(Query);
	//	mysql_free_result();
  		GetWeaponName(sia,WeapName,32);
  		GivePlayerWeapon(playerid,strval(inputtext)); 
  		if(PlayerInfo[playerid][language] == 2){
  		format(Query,sizeof Query,"{0049FF}«{FFFF00}®{0049FF}»{15FF00} Gang: {FFFFFF}Have gun, the gun's gang successfully {15FF00}%s{FFFFFF}!",WeapName);
  		}else{
		format(Query,sizeof Query,"{0049FF}«{FFFF00}®{0049FF}»{15FF00} Зete: {FFFFFF}Başarılı bir şekilde {15FF00}%s {FFFFFF}adlı silahı зete silahı yaptınız!",WeapName);
		}
		SendClientMessage(playerid,-1,Query);
		}
	}



Re: warning 202: number of arguments does not match definition - XpDeviL - 07.04.2017

Код:
GivePlayerWeapon(playerid,strval(inputtext), ammo);



Re: warning 202: number of arguments does not match definition - turkromeo - 07.04.2017

Код:
 C:\Users\Oguz\Desktop\Yeni klasor (4)\********************\(29658) : error 017: undefined symbol "ammo"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: warning 202: number of arguments does not match definition - XpDeviL - 07.04.2017

Quote:
Originally Posted by turkromeo
Посмотреть сообщение
Код:
 C:\Users\Oguz\Desktop\Yeni klasor (4)\********************\(29658) : error 017: undefined symbol "ammo"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Write the amount of ammo, not "ammo".


Re: warning 202: number of arguments does not match definition - turkromeo - 07.04.2017

Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Mb sorry , thank you for help !!