Quote:
Originally Posted by Roomeo
pawn Code:
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(687) : warning 235: public function lacks forward declaration (symbol "MoneyTimer") Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Any Solution?
script
pawn Code:
public MoneyTimer() { new username[MAX_PLAYER_NAME]; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(GetPlayerCash(i) != GetPlayerMoney(i)) { ResetMoneyBar(i);//Resets the money in the original moneybar, Do not remove! UpdateMoneyBar(i,GetPlayerCash(i));//Sets the money in the moneybar to the serverside cash, Do not remove! new hack = GetPlayerMoney(i) - GetPlayerCash(i); GetPlayerName(i,username,sizeof(username)); printf("%s has picked up/attempted to spawn $%d.", username,hack); } } } }
|
You must forward MoneyTimer due to its custom function, to do this simply add
Code:
forward MoneyTimer();
at the top of your script or before public MoneyTimer()