Can anyone help me with this?
#1

Code explains it all. Need some help with it please.


Код:
C:\Users\Christian\Desktop\RP SERVER\pawno\include\streamer.inc(375) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")
C:\Users\Christian\Desktop\RP SERVER\pawno\include\streamer.inc(397) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")
C:\Users\Christian\Desktop\RP SERVER\pawno\include\streamer.inc(399) : error 017: undefined symbol "SELECT_OBJECT_PLAYER_OBJECT"
C:\Users\Christian\Desktop\RP SERVER\gamemodes\sfrp.pwn(11437) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
C:\Users\Christian\Desktop\RP SERVER\gamemodes\sfrp.pwn(11445) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
C:\Users\Christian\Desktop\RP SERVER\gamemodes\sfrp.pwn(11453) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD"
Pawn compiler 3.2.3664     Copyright (coffee) 1997-2006, ITB CompuPhase

4 errors.
Код:
ShowMainMenuDialog(playerid, frame)
{
	new titlestring[64];
	new string[256];

	switch(frame)
	{
		case 1:
		{
			new ip[32];
			GetPlayerIp(playerid, ip, 32);
			format(titlestring, sizeof(titlestring), "{3399FF}Login - %s", GetPlayerNameEx(playerid));
			format(string, sizeof(string), "{FFFFFF}Welcome to San Francisco Roleplay, %s.\n\nIP Address: %s\n\nThe name that you are using is registered, please enter a password to login:", GetPlayerNameEx(playerid),  ip);
			ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,titlestring,string,"Login","Exit");
		}
		case 2:
		{
			new ip[32];
			GetPlayerIp(playerid, ip, 32);
			format(titlestring, sizeof(titlestring), "{3399FF}Register - %s", GetPlayerNameEx(playerid));
			format(string, sizeof(string), "{FFFFFF}Welcome to San Francisco Roleplay, %s.\n\nIP Address: %s\n\nYou may register an account by entering a desired password here:", GetPlayerNameEx(playerid),  ip);
			ShowPlayerDialog(playerid,MAINMENU2,DIALOG_STYLE_PASSWORD,titlestring,string,"Register","Exit");
		}
		case 3:
		{
			new ip[32];
			GetPlayerIp(playerid, ip, 32);
			format(titlestring, sizeof(titlestring), "{3399FF}Login - %s", GetPlayerNameEx(playerid));
			format(string, sizeof(string), "{FFFFFF}Invalid Password!\n\nWelcome to San Francisco Roleplay, %s.\n\nIP Address: %s\n\nThe name that you are using is registered, please enter a password to login:", GetPlayerNameEx(playerid),  ip);
			ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,titlestring,string,"Login","Exit");
			if(PlayerInfo[playerid][pAdmin] >= 2)
			{
				format(STRING, "WARNING: {00ff00}Bad login attempt on admin account %s! IP: %s", GetPlayerNameEx(playerid), ip);
				ABroadCast(COLOR_LIGHTRED, string, 2);
			}
		}
	}
}
Reply
#2

Make sure you compile your script with latest SA:MP includes.
Reply
#3

It seems like the current server you're running is outdated.
You can download samp 0.3e from here: http://files.sa-mp.com/samp03e_svr_R2_win32.zip
Reply
#4

Seems you need an update.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)