28.08.2011, 19:53
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if (dialogid == 1) { new name[MAX_PLAYER_NAME], file[256], string[128]; ** * * *GetPlayerName(playerid, name, sizeof(name)); ** * * *format(file, sizeof(file), SERVER_USER_FILE, name); ** * * *if(!response) return Kick(playerid); ** * * *if (!strlen(inputtext)) return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "LOGIN", "Dobrodosli, vi ste registrirani.Unesite vasu sifru da se logirate", "Login", "Izlaz"); ** * * *new tmp; ** * * *tmp = dini_Int(file, "Password"); ** * * *if(udb_hash(inputtext) != tmp) { ** * * * * *SendClientMessage(playerid, COLOR_RED, "Pogresna lozinka!"); ** * * * * *ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "LOGIN", "Dobrodosli, vi ste registrirani.Unesite vasu sifru da se logirate", "Login", "Izlaz"); ** * * *} ** * * *else ** * * *{ ** * * * * *gPlayerLogged[playerid] = 1; ** * * * * *PlayerInfo[playerid][pAdminLevel] = dini_Int(file, "AdminLevel"); ** * * * * *SetPlayerScore(playerid, PlayerInfo[playerid][pScore]); ** * * * * *GivePlayerMoney(playerid, dini_Int(file, "Money")-GetPlayerMoney(playerid)); ** * * * * *SendClientMessage(playerid,COLOR_WHITE, "SERVER:Logirani ste!!"); ** * * *} ** *} ***return 1; }
Код:
C:\Documents and Settings\Administrator\Desktop\SAMP SERVER\gamemodes\gmbeta.pwn(132) : warning 217: loose indentation C:\Documents and Settings\Administrator\Desktop\SAMP SERVER\gamemodes\gmbeta.pwn(132) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrator\Desktop\SAMP SERVER\gamemodes\gmbeta.pwn(132) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrator\Desktop\SAMP SERVER\gamemodes\gmbeta.pwn(132) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrator\Desktop\SAMP SERVER\gamemodes\gmbeta.pwn(132) : fatal error 107: too many error messages on one line