[HELP]Stats Porblems . .
#1

hey im again , i need help with /stats Warnings :\

pawn Код:
PlayerStats[playerid][pAdmin] = dini_Int(file, "Admin");
SetPlayerScore(playerid, PlayerStats[playerid][pScore]);
GivePlayerMoney(playerid, dini_Int(file, "Cash")-GetPlayerMoney(playerid));
SetPlayerScore(playerid, GetPlayerScore(playerid)+PlayerStats[playerid][pScore]);
GivePlayerWeapon(playerid, PlayerStats[playerid][pWeapon]);
i made this one and i got this

pawn Код:
(604) : warning 202: number of arguments does not match definition
this is the Line :
pawn Код:
GivePlayerWeapon(playerid, PlayerStats[playerid][pWeapon]);
how can i remove this warnings ?
Reply
#2

pawn Код:
PlayerStats[playerid][pAdmin] = dini_Int(file, "Admin");
SetPlayerScore(playerid, PlayerStats[playerid][pScore]);
GivePlayerMoney(playerid, dini_Int(file, "Cash")-GetPlayerMoney(playerid));
SetPlayerScore(playerid, GetPlayerScore(playerid)+PlayerStats[playerid][pScore]);
new WeaponEx; // If it gives error's remove THIS line.
WeaponEx = PlayerStats[playerid][pWeapon];
GivePlayerWeapon(playerid, WeaponEx);
Reply
#3

pawn Код:
GivePlayerWeapon(playerid, WeaponEx);
i still got the same warnings
Reply
#4

GivePlayerWeapon(playerid, PlayerStats[playerid][pWeapon], ammo);
Reply
#5

If you read the error it clearly says that you may have entered something not needed or you may have skipped something.

You should have read this before posting. : SAMP_WIKI
pawn Код:
GivePlayerWeapon(playerid, PlayerStats[playerid][pWeapon],Ammo);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)