Help Please - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help Please (
/showthread.php?tid=196116)
Help Please -
TheArcher - 04.12.2010
I've got a warring on my complile:
pawn Код:
C:\Users\Administrator\Desktop\Server\gamemodes\Test.pwn(5271) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
i put in
pawn Код:
public OnPlayerUpdate(playerid)
at line 5271:
pawn Код:
new Float:armour = GetPlayerArmour(playerid);
pawn Код:
if(armour >= 1.0)
{
SetPlayerHoldingObject( playerid, 373, 1, 0.283546, 0.001720, -0.167524, 74.198112, 20.393077, 35.485473 ); // armour
}
Re: Help Please -
WillyP - 04.12.2010
Re: Help Please -
dice7 - 04.12.2010
pawn Код:
new Float:armour;
GetPlayerArmour(playerid, armour);
https://sampwiki.blast.hk/wiki/GetPlayerArmour
Re: Help Please -
Lynn - 04.12.2010
Use this:
pawn Код:
public OnPlayerUpdate(playerid)
{
new Float:armour;
GetPlayerArmour(playerid, armour);
if(armour >= 1.0)
{
SetPlayerHoldingObject(playerid, 373, 1, 0.283546, 0.001720, -0.167524, 74.198112, 20.393077, 35.485473 ); // armour
}
return 1;
}
Re: Help Please -
TheArcher - 04.12.2010
alright it compiles fine, thanks all