19.07.2013, 03:43
I'm recently making a registration system using YSI method, this is my first time making a registration system. Anyhow here are my errors:
Line 114:
Path Definition and stock:
I've been trying forever, if someone can help me, it'll be appreciated
pawn Код:
C:\Users\Eli\Downloads\samp03x_svr_R1-2_win32\gamemodes\Elie's Roleplay.pwn(123) : error 017: undefined symbol "Path"
C:\Users\Eli\Downloads\samp03x_svr_R1-2_win32\gamemodes\Elie's Roleplay.pwn(125) : error 017: undefined symbol "Path"
C:\Users\Eli\Downloads\samp03x_svr_R1-2_win32\gamemodes\Elie's Roleplay.pwn(139) : error 017: undefined symbol "Path"
C:\Users\Eli\Downloads\samp03x_svr_R1-2_win32\gamemodes\Elie's Roleplay.pwn(141) : error 017: undefined symbol "pInfo"
C:\Users\Eli\Downloads\samp03x_svr_R1-2_win32\gamemodes\Elie's Roleplay.pwn(141) : warning 215: expression has no effect
C:\Users\Eli\Downloads\samp03x_svr_R1-2_win32\gamemodes\Elie's Roleplay.pwn(141) : error 001: expected token: ";", but found "]"
C:\Users\Eli\Downloads\samp03x_svr_R1-2_win32\gamemodes\Elie's Roleplay.pwn(141) : error 029: invalid expression, assumed zero
C:\Users\Eli\Downloads\samp03x_svr_R1-2_win32\gamemodes\Elie's Roleplay.pwn(141) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
pawn Код:
if(fexist(Path(playerid)))
pawn Код:
#define UserPath "Users/%s.ini"
// under the enum you have:
stock Path(playerid) //Will create a new stock so we can easily use it later to load/save user's data in user's path
{
new str[128],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(str,sizeof(str), UserPath,name); //edit
return str;
}
