Solution for Armour anti-baner
#1

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?
Reply
#2

GetPlayerArmour should be like this

pawn Код:
new Float:armour;
GetPlayerArmour(playerid, armour);
if(armour == 100)
{
//codes
}
Reply
#3

Thanks. Reputation for you.
Reply
#4

Nah repuation doesn't count if the giver doesn't have 50+ score or higher.

Anyway i just want to help not for rep.
Reply
#5

Okay then.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)