04.10.2013, 19:35
forwarding is used for public functions.
Used like this:
Though if you only want to increase the cops rank by 1 everytime, you would do this:
Used like this:
pawn Код:
forward IncreaseCoprank(playerid, value);
public IncreaseCoprank(playerid, value)
{
//code here that will increase the cops rank. For example:
PlayerInfo[playerid][pCopRank] += value;
return 1;
}
pawn Код:
forward IncreaseCoprank(playerid);
public IncreaseCoprank(playerid)
{
//code here that will increase the cops rank. For example:
PlayerInfo[playerid][pCopRank] += 1;
return 1;
}
//and use it in a command/function like this:
IncreaseCoprank(playerid);