Quote:
Originally Posted by MAFIAWARS
Line (213): [Warning 1 ]
PHP код:
public OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME]; //Making a new variable called 'name'. name[MAX_PLAYER_NAME] is created so we can use it to get player's name.
GetPlayerName(playerid,name,sizeof(name)); //Get player's name
if(fexist(Path(playerid))) /* Check if the connected user is registered or not. fexist stands for file exist. So if file exist in the files(Path(playerid)),*/
{// then
INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid); //Will load user's data using INI_Parsefile.
ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_INPUT,"Login","Access granted. You are now logged in. \nInsert your password to login to your account","Login","Quit");/*A dialog with input style will appear so you can insert your password to login.*/
}
else //If the connected user is not registered,
{//then we will 'force' him to register :)
ShowPlayerDialog(playerid,dregister,DIALOG_STYLE_INPUT,"Register","Welcome! This account is not registered.\nEnter your own password to create a new account.","Register","Quit");
return 1;
}
return 1;
}
Line: 213 // [Warning 2]
Same.
Line 202 [Warning 3]
PHP код:
if(fexist(Path(playerid)))
Line 202 [Warning 4]
Same
Line 202 [Warning 5]
Same
Line 202 [Warning 6]
Same
Line 204 [Warning 7]
PHP код:
INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid);
Thanks!!
|
Are U showing Lines 213, 204 and 202?? (those are warnings) show line 166, and other