Solution for Armour anti-baner - 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: Solution for Armour anti-baner (
/showthread.php?tid=372516)
Solution for Armour anti-baner -
GTAprogamer111 - 27.08.2012
Hello pepole!
I have another solution what I need to repair, but this time I have:
Код:
[---]\Desktop\SAMP server\filterscripts\KS.pwn(1339) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
And here is the code:
Код:
if (GetPlayerArmour(playerid) == 100)
{
SendClientMessage(playerid,COLOR_RED,"Sa said anti-banni!");
Ban(playerid);
GameTextForAll("HAAAAAAAAX", 1500, 3);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"{FF0000}[ANTI-BANNER]{FF0000}%s {0000FF}sai banni! [Pхhjus: Kuuli vest leiti]",pName);
SendClientMessageToAll(0xFFFFFFAA,string);
}
Any solutions?
Re: Solution for Armour anti-baner -
JaKe Elite - 27.08.2012
GetPlayerArmour should be like this
pawn Код:
new Float:armour;
GetPlayerArmour(playerid, armour);
if(armour == 100)
{
//codes
}
Re: Solution for Armour anti-baner -
GTAprogamer111 - 27.08.2012
Thanks. Reputation for you.
Re: Solution for Armour anti-baner -
JaKe Elite - 27.08.2012
Nah repuation doesn't count if the giver doesn't have 50+ score or higher.
Anyway i just want to help not for rep.
Re: Solution for Armour anti-baner -
GTAprogamer111 - 27.08.2012
Okay then.