15.01.2015, 14:34
Hello SA:MP Scripters, Beta Testers and players,
I was creating a unique race gamemode, and i was using YSI\Y_INI Include, and i was following this tutorial https://sampforum.blast.hk/showthread.php?tid=273088
And now, I got some errors for INI_INT and some other stuff, can any one help me ?
Errors & Warnings:
Here are lines:
Lines 170~208
Lines 487~496
Line 490 only:
P.S: I'm using YSI 3.1 for SA:MP 0.3z RC-4.
Thanks
I was creating a unique race gamemode, and i was using YSI\Y_INI Include, and i was following this tutorial https://sampforum.blast.hk/showthread.php?tid=273088
And now, I got some errors for INI_INT and some other stuff, can any one help me ?
Errors & Warnings:
Код:
C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\pawno\include\YSI\y_hooks/impl.inc(2336) : error 025: function heading differs from prototype C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\pawno\include\YSI\y_hooks/impl.inc(2383) : error 025: function heading differs from prototype C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\pawno\include\YSI\y_hooks/impl.inc(2819) : warning 235: public function lacks forward declaration (symbol "OnPlayerClickTextDraw") C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\pawno\include\YSI\y_hooks/impl.inc(2863) : warning 235: public function lacks forward declaration (symbol "OnPlayerClickPlayerTextDraw") C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\pawno\include\YSI\y_hooks/impl.inc(2907) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject") C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\pawno\include\YSI\y_hooks/impl.inc(2959) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditAttachedObject") C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\pawno\include\YSI\y_hooks/impl.inc(3018) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject") C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(191) : warning 235: public function lacks forward declaration (symbol "LoadUser_date") C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(193) : error 017: undefined symbol "INI_INT" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(194) : error 017: undefined symbol "INI_INT" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(195) : error 017: undefined symbol "INI_INT" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(196) : error 017: undefined symbol "INI_INT" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(197) : error 017: undefined symbol "INI_INT" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(198) : error 017: undefined symbol "INI_INT" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(199) : error 017: undefined symbol "INI_INT" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(200) : error 017: undefined symbol "INI_INT" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(201) : error 017: undefined symbol "INI_INT" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(202) : error 017: undefined symbol "INI_INT" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(203) : error 017: undefined symbol "INI_INT" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(204) : error 017: undefined symbol "INI_INT" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(205) : error 017: undefined symbol "INI_INT" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(206) : error 017: undefined symbol "INI_INT" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(487) : warning 225: unreachable code C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(490) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(490) : warning 215: expression has no effect C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(490) : error 001: expected token: ";", but found "-string-" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(490) : warning 215: expression has no effect C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(490) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\SA-MP\Desktop\Fun-Generation [DM] Server\gamemodes\mishakonsta.pwn(490) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 20 Errors.
Lines 170~208
pawn Код:
enum pInfo
{
pID,
pNickName[32],
pPass[32],
pAdmin,
pVIP,
pBanned,
pMuted,
pMoney,
pScore,
pHunters,
pWins,
pRunUps,
pClan,
pMuteTime,
};
new PlayerInfo[MAX_PLAYERS][pInfo];
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_date(playerid,name[],value[])
{
INI_INT("ID",PlayerInfo[playerid][pID]);
INI_INT("Nickname",PlayerInfo[playerid][pNickName]);
INI_INT("Password",PlayerInfo[playerid][pPass]);
INI_INT("Admin",PlayerInfo[playerid][pAdmin]);
INI_INT("VIP",PlayerInfo[playerid][pVIP]);
INI_INT("Banned",PlayerInfo[playerid][pBanned]);
INI_INT("Muted",PlayerInfo[playerid][pMuted]);
INI_INT("Money",PlayerInfo[playerid][pMoney]);
INI_INT("Score",PlayerInfo[playerid][pScore]);
INI_INT("Hunters",PlayerInfo[playerid][pHunters]);
INI_INT("Wins",PlayerInfo[playerid][pWins]);
INI_INT("Run-Ups",PlayerInfo[playerid][pWins]);
INI_INT("Clan",PlayerInfo[playerid][pClan]);
INI_INT("Mute-Time",PlayerInfo[playerid][pMuteTim]);
return 1;
}
pawn Код:
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COLOR_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
}
return 1;
pawn Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
Thanks