[HELP]Stats Porblems . . - 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: [HELP]Stats Porblems . . (
/showthread.php?tid=353969)
[HELP]Stats Porblems . . -
Devilxz97 - 25.06.2012
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 ?
Re: [HELP]Stats Porblems . . -
Dubya - 25.06.2012
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);
Re: [HELP]Stats Porblems . . -
Devilxz97 - 25.06.2012
pawn Код:
GivePlayerWeapon(playerid, WeaponEx);
i still got the same warnings
Re: [HELP]Stats Porblems . . -
mendax - 25.06.2012
GivePlayerWeapon(playerid, PlayerStats[playerid][pWeapon],
ammo);
Re: [HELP]Stats Porblems . . -
[MM]RoXoR[FS] - 25.06.2012
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);