} return 1; } if(dialogid == DIALOG_CHANGEPASS) { if (response == 0) { return 1; } if (response == 1) { if (strlen(inputtext)==0) { SendClientMessage(playerid,COLOR_ERROR,"Please enter your desired password in the box."); ShowChangePassScreen(playerid); return 1; } udb_UserSetInt(PlayerName(playerid),"password_hash ",udb_hash(inputtext)); format(string,sizeof(string),"You have successfully changed your password to '%s', use this to login from now on.",inputtext); SendClientMessage(playerid,COLOR_LIGHTBLUE,string) ; return true; } return 1; } if(dialogid == DIALOG_CHANGENAME) { if (response == 0) { return 1; } if (response == 1) { if (strlen(inputtext)==0) { SendClientMessage(playerid,COLOR_ERROR,"Please enter your desired name in the box."); ShowChangeNameScreen(playerid); return 1; } udb_RenameUser(nickname[],newnick[]) { SetPlayerName(nickname[],newnick[]); } format(string,sizeof(string),"You have successfully changed your name to '%s', use this to login from now on.",inputtext); SendClientMessage(playerid,COLOR_LIGHTBLUE,string) ; return true; } return 1; } return 1; } |
} return 1; } if(dialogid == DIALOG_CHANGEPASS) { if (response == 0) { return 1; } if (response == 1) { if (strlen(inputtext)==0) { SendClientMessage(playerid,COLOR_ERROR,"Please enter your desired password in the box."); ShowChangePassScreen(playerid); return 1; } udb_UserSetInt(PlayerName(playerid),"password_hash ",udb_hash(inputtext)); format(string,sizeof(string),"You have successfully changed your password to '%s', use this to login from now on.",inputtext); SendClientMessage(playerid,COLOR_LIGHTBLUE,string) ; return true; } return 1; } if(dialogid == DIALOG_CHANGENAME) { if (response == 0) { return 1; } if (response == 1) { if (strlen(inputtext)==0) { SendClientMessage(playerid,COLOR_ERROR,"Please enter your desired name in the box."); ShowChangeNameScreen(playerid); return 1; } udb_RenameUser(PlayerName(playerid),inputtext); SetPlayerName(playerid,inputtext); format(string,sizeof(string),"You have successfully changed your name to '%s', use this to login from now on.",inputtext); SendClientMessage(playerid,COLOR_LIGHTBLUE,string) ; return true; } return 1; } return 1; }
Try that.
Код:
} return 1; } if(dialogid == DIALOG_CHANGEPASS) { if (response == 0) { return 1; } if (response == 1) { if (strlen(inputtext)==0) { SendClientMessage(playerid,COLOR_ERROR,"Please enter your desired password in the box."); ShowChangePassScreen(playerid); return 1; } udb_UserSetInt(PlayerName(playerid),"password_hash ",udb_hash(inputtext)); format(string,sizeof(string),"You have successfully changed your password to '%s', use this to login from now on.",inputtext); SendClientMessage(playerid,COLOR_LIGHTBLUE,string) ; return true; } return 1; } if(dialogid == DIALOG_CHANGENAME) { if (response == 0) { return 1; } if (response == 1) { if (strlen(inputtext)==0) { SendClientMessage(playerid,COLOR_ERROR,"Please enter your desired name in the box."); ShowChangeNameScreen(playerid); return 1; } udb_RenameUser(PlayerName(playerid),inputtext); SetPlayerName(playerid,inputtext); format(string,sizeof(string),"You have successfully changed your name to '%s', use this to login from now on.",inputtext); SendClientMessage(playerid,COLOR_LIGHTBLUE,string) ; return true; } return 1; } return 1; } |
C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 3014) : error 010: invalid function or declaration C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 3016) : error 010: invalid function or declaration C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 301 : error 010: invalid function or declaration C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 3020) : error 010: invalid function or declaration C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 3022) : error 010: invalid function or declaration C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 3026) : error 010: invalid function or declaration C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 302 : error 021: symbol already defined: "udb_UserSetInt" C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 302 : error 017: undefined symbol "playerid" C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 302 : error 010: invalid function or declaration C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 3028 -- 13031) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 10 Errors. |