Need Help Urgently!!
#1

I Got An Error..

Код:
C:\Users\Armageddon\Desktop\Gamemode1.pwn(110) : error 029: invalid expression, assumed zero
C:\Users\Armageddon\Desktop\Gamemode1.pwn(110) : warning 215: expression has no effect
C:\Users\Armageddon\Desktop\Gamemode1.pwn(110) : warning 215: expression has no effect
C:\Users\Armageddon\Desktop\Gamemode1.pwn(110) : warning 215: expression has no effect
C:\Users\Armageddon\Desktop\Gamemode1.pwn(110) : warning 215: expression has no effect
C:\Users\Armageddon\Desktop\Gamemode1.pwn(110) : warning 215: expression has no effect
C:\Users\Armageddon\Desktop\Gamemode1.pwn(110) : error 001: expected token: ";", but found ")"
C:\Users\Armageddon\Desktop\Gamemode1.pwn(110) : error 029: invalid expression, assumed zero
C:\Users\Armageddon\Desktop\Gamemode1.pwn(110) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
with this line..idk what is going on right now

Код:
ShowPlayerDialog(playerid,Dialog_Login,DIALOG_STYLE_INPUT,"Please Login","Welcome Back . This Account Is {FF0000}Registered. \n{FFFFFF}Insert Your Password To Login To Your Account.","Login","Cancel");
The Code
Код:
public OnPlayerConnect(playerid)
{
	 if(fexist(Path(playerid))) 
    {
        INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid); //Will load user's data using INI_Parsefile.
        ShowPlayerDialog(playerid,Dialog_Login,DIALOG_STYLE_INPUT,"Please Login","Welcome Back . This Account Is {FF0000}Registered. \n{FFFFFF}Insert Your Password To Login To Your Account.","Login","Cancel");
    {
        ShowPlayerDialog(playerid,Dialog_Register,DIALOG_STYLE_INPUT,"Please Register","Welcome. This Account Is Not Registered In Our Server.\nEnter Your Password To Create A New Account.","Register","Cancel");
		return 1;
  	}
  	    new pname[MAX_PLAYER_NAME], string[256];
	GetPlayerName( playerid, pname, sizeof(pname));
	format(string, sizeof(string), "Welcome To {66CCFF}Cyber {FFFF99}Malaysian {99FF66}Army,  {FF6600}%s{FFFFFF}", pname);
 	SendClientMessage(playerid, 0xFFFFFFFF, string);
	return 1;
}
i can give you the whole code if you need it..i spent so much time on this..I want to create login and register system
Reply
#2

PHP код:
// YOUR CODE:

if(fexist(Path(playerid)))
{
    
INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra true, .extra playerid); //Will load user's data using INI_Parsefile.
    
ShowPlayerDialog(playerid,Dialog_Login,DIALOG_STYLE_INPUT,"Please Login","Welcome Back . This Account Is {FF0000}Registered. \n{FFFFFF}Insert Your Password To Login To Your Account.","Login","Cancel");
    {
        
ShowPlayerDialog(playerid,Dialog_Register,DIALOG_STYLE_INPUT,"Please Register","Welcome. This Account Is Not Registered In Our Server.\nEnter Your Password To Create A New Account.","Register","Cancel");
        return 
1;
    } 
PHP код:
// HOW IT SHOULD BE:
if(fexist(Path(playerid)))
{
    
INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra true, .extra playerid); //Will load user's data using INI_Parsefile.
    
ShowPlayerDialog(playerid,Dialog_Login,DIALOG_STYLE_INPUT,"Please Login","Welcome Back . This Account Is {FF0000}Registered. \n{FFFFFF}Insert Your Password To Login To Your Account.","Login","Cancel");
}
else
{
    
ShowPlayerDialog(playerid,Dialog_Register,DIALOG_STYLE_INPUT,"Please Register","Welcome. This Account Is Not Registered In Our Server.\nEnter Your Password To Create A New Account.","Register","Cancel");
    return 
1;

Reply
#3

show line 110
Reply
#4

sorry for late reply..the problem is solved thank you very much Konstantinos
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)