23.02.2011, 14:46
Quote:
You cannot modify predefined function headers simply because you get errors. When you get errors you have to blame yourself and try to correct your code rather than correcting the predefined ones.
And now for the error: Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/register", cmdtext, true, 10) == 0) { if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"{F81414}Your Already Registered!"); if (udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"{F81414}Your Registered But Not Logged In Type /login [password]"); if (strlen(cmdtext)==0) return SystemMsg(playerid,"{F81414}USAGE: /register [password]"); if (udb_Create(PlayerName(playerid),cmdtext)) { SystemMsg(playerid,"{6EF83C}Account Created! Now Use /login [password] To Login."); } } return 1; } |
also just tested you can register without a pass like this /register
and it registers anyway 2 fix?