19.10.2009, 00:04
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 }