07.12.2014, 08:45
hi i had those errors when compiling
C:\Users\Sybinfo 56\Desktop\samp\pawno\include\YSI\y_hooks/impl.inc(1755) : warning 235: public function lacks forward declaration (symbol "OnUnoccupiedVehicleUpdate")
C:\Users\Sybinfo 56\Desktop\samp\pawno\include\YSI\y_hooks/impl.inc(2336) : warning 235: public function lacks forward declaration (symbol "OnPlayerTakeDamage")
C:\Users\Sybinfo 56\Desktop\samp\pawno\include\YSI\y_hooks/impl.inc(2382) : warning 235: public function lacks forward declaration (symbol "OnPlayerGiveDamage")
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(63) : error 017: undefined symbol "PATH"
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(72) : error 017: undefined symbol "DIALOG_LOGIN"
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(72) : error 017: undefined symbol "WHITE"
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(72) : warning 215: expression has no effect
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(72) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(72) : fatal error 107: too many error messages on one line
here is the script
#if defined FILTERSCRIPT
#define PATH "/URP/Users/%s.ini"
#define WHITE "{FFFFFF}"
#define RED "{F81414}"
#define GREEN "{00FF22}"
#define LIGHTBLUE "{00CED1}"
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
#define DIALOG_SUCCESS_1 3
#define DIALOG_SUCCESS_2 4
stock UserPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playernam e));
error line -----> format(string,sizeof(string),PATH,playername);
return string;
}
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
error----> INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
error----> ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""WHITE"Login",""WHITE"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""WHITE"Registering...",""WHITE "Type your password below to register a new account.","Register","Quit");
}
return 1;
}
thx for help
C:\Users\Sybinfo 56\Desktop\samp\pawno\include\YSI\y_hooks/impl.inc(1755) : warning 235: public function lacks forward declaration (symbol "OnUnoccupiedVehicleUpdate")
C:\Users\Sybinfo 56\Desktop\samp\pawno\include\YSI\y_hooks/impl.inc(2336) : warning 235: public function lacks forward declaration (symbol "OnPlayerTakeDamage")
C:\Users\Sybinfo 56\Desktop\samp\pawno\include\YSI\y_hooks/impl.inc(2382) : warning 235: public function lacks forward declaration (symbol "OnPlayerGiveDamage")
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(63) : error 017: undefined symbol "PATH"
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(72) : error 017: undefined symbol "DIALOG_LOGIN"
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(72) : error 017: undefined symbol "WHITE"
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(72) : warning 215: expression has no effect
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(72) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(72) : fatal error 107: too many error messages on one line
here is the script
#if defined FILTERSCRIPT
#define PATH "/URP/Users/%s.ini"
#define WHITE "{FFFFFF}"
#define RED "{F81414}"
#define GREEN "{00FF22}"
#define LIGHTBLUE "{00CED1}"
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
#define DIALOG_SUCCESS_1 3
#define DIALOG_SUCCESS_2 4
stock UserPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playernam e));
error line -----> format(string,sizeof(string),PATH,playername);
return string;
}
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
error----> INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
error----> ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""WHITE"Login",""WHITE"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""WHITE"Registering...",""WHITE "Type your password below to register a new account.","Register","Quit");
}
return 1;
}
thx for help