need help once again
#1

im trying to add a new login system form a FS i copied everything right and i get this

Код:
C:\DOCUME~1\ALRP.pwn(3290) : error 010: invalid function or declaration
Код:
		format(string, sizeof(string), "%s.ini", plname);
	if(fexist(string))
	{
		gPlayerAccount[playerid] = 1;
		new loginstring[128];
		new loginname[64];
		GetPlayerName(playerid,loginname,sizeof(loginname));
		format(loginstring,sizeof(loginstring),"Welcome, %s\nThat nick is registered.\nYou can now login:",loginname);
		ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit");
		return 1;
	}
	else
	{
		gPlayerAccount[playerid] = 0;
 		new regstring[128];
		new regname[64];
		GetPlayerName(playerid,regname,sizeof(regname));
		format(regstring,sizeof(regstring),"Welcome, %s\nYou dont have an account.\nPlease register:",regname);
		ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register",regstring,"Register","Exit");
		return 1;
	}
}
return 1;<<<<<<Line 3290
}
Reply
#2

Make sure your scopes are correctly placed so it's not being declared.
Reply
#3

scopes?
Reply
#4

Quote:
Originally Posted by pepper
scopes?
Код:
{
}
Reply
#5

ok think i got it testing it now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)