Questions again!
#5

Quote:
Originally Posted by sekol
Посмотреть сообщение
I did this BW thing like this and tryed to compile.
Код:
public Bw(playerid)
{
	new Float:health;
    GetPlayerHealth(playerid,health);
    if (health < 2.0)
    {
        PlayerInfo[playerid][pBw] = 1;
        PlayerInfo[playerid][pBwCzas] = 15;
	}
}
But it shows me those errors
Код:
C:\Users\Machlik\Desktop\samp03asvr_R8_win32\gamemodes\WZLSRP.pwn(1114) : error 017: undefined symbol "PlayerInfo"
C:\Users\Machlik\Desktop\samp03asvr_R8_win32\gamemodes\WZLSRP.pwn(1115) : error 017: undefined symbol "PlayerInfo"
C:\Users\Machlik\Desktop\samp03asvr_R8_win32\gamemodes\WZLSRP.pwn(2292) : warning 235: public function lacks forward declaration (symbol "DistanceCameraTargetToLocation")
C:\Users\Machlik\Desktop\samp03asvr_R8_win32\gamemodes\WZLSRP.pwn(4056) : error 017: undefined symbol "pBw"
C:\Users\Machlik\Desktop\samp03asvr_R8_win32\gamemodes\WZLSRP.pwn(12920) : error 017: undefined symbol "pBw"
C:\Users\Machlik\Desktop\samp03asvr_R8_win32\gamemodes\WZLSRP.pwn(13135) : error 017: undefined symbol "pBw"
C:\Users\Machlik\Desktop\samp03asvr_R8_win32\gamemodes\WZLSRP.pwn(13351) : error 017: undefined symbol "pBw"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
You need
pawn Код:
enum PLAYERINFO
{
    pBw,
    pBwCzas,
}
new PlayerInfo[MAX_PLAYERS][PLAYERINFO];
Also, don't use timers to save players. Save them in OnPlayerDisconnect. If the player logs out between the timers the information about him will be lost.
Reply


Messages In This Thread
Questions again! - by sekol - 19.08.2010, 13:37
Re: Questions again! - by ScottCFR - 19.08.2010, 13:49
Re: Questions again! - by sekol - 19.08.2010, 13:57
Re: Questions again! - by sekol - 19.08.2010, 16:30
Re: Questions again! - by CaHbKo - 19.08.2010, 17:07
Re: Questions again! - by sekol - 19.08.2010, 18:39

Forum Jump:


Users browsing this thread: 2 Guest(s)