Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all articles
Browse latest Browse all 595

[FilterScript] PLEASE HELP! (88) : error 035: argument type mismatch (argument 3)

$
0
0
#define FILTERSCRIPT

#include <a_samp>
#include <ZCMD>
#include <sscanf2>


#if defined FILTERSCRIPT


#endif
new lastskin;
new duty = 0;
new wantedlevel;


CMD:duty(playerid , params[])
{
if (IsPlayerAdmin(playerid))


{

lastskin = GetPlayerSkin(playerid);

SetPlayerArmour(playerid, 100);

SetPlayerSkin(playerid, 280);

GivePlayerWeapon(playerid , 24 , 500);

SendClientMessage(playerid , -1 , "[POLICE]Esti la datorie!");

SetPlayerColor(playerid , 0x0335ffFF);

duty = 1;

return 1;

}

else

{

SendClientMessage(playerid , -1 , "Nu ai functia de politist.");

}
return 1;

}

CMD:offduty(playerid , params[])
{

SendClientMessage(playerid , -1 , "[POLICE]Nu mai esti la datorie!");

SetPlayerSkin(playerid, lastskin);

SetPlayerArmour(playerid, 0);

ResetPlayerWeapons(playerid);

SetPlayerColor(playerid , -1 );

duty = 0;
return 1;

}


CMD:wanted(playerid , params[])
{
if (IsPlayerAdmin(playerid))
{
if (duty == 1)
{
new targetid;


if(sscanf(params,"d", targetid)) return SendClientMessage(playerid,-1 ,"USAGE: /wanted [id]");

else if (!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,"Acel player nu este online");

wantedlevel = GetPlayerWantedLevel(targetid);

SendClientMessage(playerid , -1 , wantedlevel);



return 1;

}

else

{

SendClientMessage(playerid , -1 , "[POLICE]Nu esti la datorie!");
}//////



}//////////////



return 1;



}////////

Viewing all articles
Browse latest Browse all 595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>