#1

pawn Код:
E:\american\pawno\include\ripple\functions.pwn(32) : error 017: undefined symbol "pFPS"
Main code
pawn Код:
stock GetPlayerFPS(playerid,&fps)
{
    if(!IsPlayerConnected(playerid)) return 0;

    fps =pFPS(playerid);
    return 1;
}
Reply
#2

pawn Код:
stock GetPlayerFPS(playerid)
{
    SetPVarInt(playerid, "DrunkL", GetPlayerDrunkLevel(playerid));
    if(GetPVarInt(playerid, "DrunkL") < 100) SetPlayerDrunkLevel(playerid, 2000);
        else{
            if(GetPVarInt(playerid, "LDrunkL") != GetPVarInt(playerid, "DrunkL"))
            {
                SetPVarInt(playerid, "FPS", (GetPVarInt(playerid, "LDrunkL") - GetPVarInt(playerid, "DrunkL")));
                SetPVarInt(playerid, "LDrunkL", GetPVarInt(playerid, "DrunkL"));
                if((GetPVarInt(playerid, "FPS") > 0) && (GetPVarInt(playerid, "FPS") < 256))
                {
                    return GetPVarInt(playerid, "FPS") - 1;
                }
            }
        }
    return 0;
}
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=172085
Reply
#4

pawn Код:
E:\american\pawno\include\ripple/variables.pwn(32) : error 017: undefined symbol "pFPS"
E:\american\pawno\include\ripple/variables.pwn(32) : warning 215: expression has no effect
E:\american\pawno\include\ripple/variables.pwn(32) : error 001: expected token: ";", but found "]"
E:\american\pawno\include\ripple/variables.pwn(32) : error 029: invalid expression, assumed zero
E:\american\pawno\include\ripple/variables.pwn(32) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
This include
website: https://github.com/fusez/ripple/blob.../functions.pwn
Reply
#5

Problem not solved need a sloution
Reply
#6

You need this include https://github.com/fusez/ripple/blob.../variables.pwn not the other one you got them mixed up
Reply
#7

Gives same errors lel
Reply
#8

Do reply anyone +rep
Reply
#9

add this at top

pawn Код:
new pFPS[MAX_PLAYERS];
OR make new one with this codes

pawn Код:
new DrunkL[MAX_PLAYERS];
new LDrunkL[MAX_PLAYERS];
pawn Код:
stock GetPlayerFPS(playerid)
{
    DrunkL[playerid] = GetPlayerDrunkLevel(playerid);
    if(DrunkL[playerid] < 100)
    {
        SetPlayerDrunkLevel(playerid, 2000);
    }
    else
    {
        if(LDrunkL[playerid] != DrunkL[playerid])
        {
            FPS[playerid] = (LDrunkL[playerid] - DrunkL[playerid]);
            LDrunkL[playerid] = DrunkL[playerid];
        }
    }
    return 0;
}
Reply
#10

"+ rep" isn't a proper title
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)