Coprank problem
#2

forwarding is used for public functions.

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;
}
Though if you only want to increase the cops rank by 1 everytime, you would do this:
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);
Reply


Messages In This Thread
Coprank problem - by efrim123 - 04.10.2013, 19:31
Re: Coprank problem - by EiresJason - 04.10.2013, 19:35
Re: Coprank problem - by efrim123 - 04.10.2013, 19:40
Re: Coprank problem - by EiresJason - 04.10.2013, 19:41

Forum Jump:


Users browsing this thread: 2 Guest(s)