SA-MP Forums Archive
need help once again - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need help once again (/showthread.php?tid=103239)



need help once again - pepper - 19.10.2009

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
}



Re: need help once again - Donny_k - 19.10.2009

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


Re: need help once again - pepper - 19.10.2009

scopes?


Re: need help once again - gemadon - 19.10.2009

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



Re: need help once again - pepper - 19.10.2009

ok think i got it testing it now