27.11.2012, 20:11
Hello everyone. I have made the following command:
But, when i try using /login OR /login <my password>, it says "Unknown Command". Is it because of my command,
Or is it because of something else?
Please help me. Thanks.
Greetings, CrazyManiac.
Код:
COMMAND:login(playerid,params[]) { if(isnull(params)) return NoSuccess(playerid,"Usage: /login <password>"); format(str,256,"%s.txt",pname[playerid]); if(!dini_Exists(str)) return NoSuccess(playerid,"[Notification] You did not Register yet. Please use /register <password> to Register a new account!"); if(Login[playerid] == 1) return NoSuccess(playerid,"[Notification] You have already been logged in!"); if(strcmp(params,ReturnPasswort(pname[playerid]),false)) return NoSuccess(playerid,"[Notification] You have entered an invalid password!"); LoadPlayer(playerid); Login[playerid] = 1; SendClientMessage(playerid,neongruen,"[Notification] You have successfully been logged in!"); return 1; }
Or is it because of something else?
Please help me. Thanks.
Greetings, CrazyManiac.