21.09.2014, 04:50
Код:
D:\TDm 2.0\ilkul new wala\filterscripts\skills.pwn(152) : error 035: argument type mismatch (argument 3) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
CMD:skill(playerid, params[]) { if(IsPlayerConnected(playerid)) { SkillShow(playerid,playerid); } return 1;} public SkillShow(playerid,targedid) { new p1 = PlayerInfo[playerid][Pistol]; new p2 = PlayerInfo[playerid][SPistol]; new p3 = PlayerInfo[playerid][Desert]; new p4 = PlayerInfo[playerid][Shotgun]; new p5 = PlayerInfo[playerid][Sawnoff]; new p6 = PlayerInfo[playerid][Spas12]; new p7 = PlayerInfo[playerid][Uzi]; new p8 = PlayerInfo[playerid][MP5]; new p9 = PlayerInfo[playerid][AK47]; new p10 = PlayerInfo[playerid][M4]; new p11 = PlayerInfo[playerid][Rifle]; /*new pName[MAX_PLAYER_NAME]; GetPlayerName(targedid, pName, sizeof(pName));*/ new message[700]; format(message, sizeof(message), "Pistol: %i\nSilenced Pistol: %i\nDesert Eagle: %i\nShotgun: %i\nSawnOff ShotGun: %i\nSpas12 ShotGun: %i\nUZI: %i\nMP5: %i\nAK47: %i\nM4: %i\nSniper Rifle: %i",p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11); (152) ShowPlayerDialog(playerid, 786, "Weapon Skill", message, "Close", ""); return 1; }