02.08.2010, 00:30
Not sure what i did wrong but im making a custom function for my server. Here is code
And im using it in a string, such as.
(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
pawn Код:
stock GetPlayerGas(playerid)
{
amount = GetPVarInt(playerid, "gas");
return amount;
}
pawn Код:
format(string, sizeof(string), "You have %d Gallons of gas left.", GetPlayerSP(splayer));
Again, its giving warning warning 209: function "GetPlayerGas" should return a value