warning 209: function "GetPlayerGas" should return a value
#1

Not sure what i did wrong but im making a custom function for my server. Here is code

pawn Код:
stock GetPlayerGas(playerid)
{
    amount = GetPVarInt(playerid, "gas");
    return amount;
}
And im using it in a string, such as.


pawn Код:
format(string, sizeof(string), "You have %d Gallons of gas left.", GetPlayerSP(splayer));
(Gas is used as an example for somthing else, But it works the same way)

Again, its giving warning warning 209: function "GetPlayerGas" should return a value
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)