Help Please
#1

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

pawn Код:
new Float:armour
Reply
#3

pawn Код:
new Float:armour;
GetPlayerArmour(playerid, armour);
https://sampwiki.blast.hk/wiki/GetPlayerArmour
Reply
#4

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;
}
Reply
#5

alright it compiles fine, thanks all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)