27.11.2009, 22:20
Код:
D:...\samp\filterscripts\DAdmin.pwn(261) : error 003: declaration of a local variable must appear in a compound block D:...\samp\filterscripts\DAdmin.pwn(261) : error 017: undefined symbol "tmp" D:...\samp\filterscripts\DAdmin.pwn(261) : warning 215: expression has no effect D:...\samp\filterscripts\DAdmin.pwn(261) : error 001: expected token: ";", but found "]" D:...\samp\filterscripts\DAdmin.pwn(261) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
if(dialogid ==2) { TogglePlayerControllable(playerid, 0); new file[256]; new string[256], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(file, sizeof(file), "\\Users\\%s.ini", pname); if(response == 1) new tmp[256]; //---------------------------------------------line 261 tmp = dini_IntGet(file, "hashPW"); if(udb_hash(inputtext) != tmp) { format(string, 256, "You specified the wrong password for %s!", pname); SendClientMessage(playerid, 000000, string); ShowPlayerDialog(playerid, 2, 1,"Wrong Password", "That Password is incorrect. Please try again.","login", "cancel"); } else { logged[playerid] = 1; level[playerid] = dini_Int(file, "level"); SetPlayerScore(playerid, dini_Int(file, "score")); GivePlayerMoney(playerid, dini_Int(file, "money")-GetPlayerMoney(playerid)); SendClientMessage(playerid, 0000000, "You have succesfully logged in!"); printf("%s (%i) logged in with password %s", pname, playerid, inputtext); } if(response == 0) { SendClientMessage(playerid, 0xFFFF0000, "You must log in or register to use this server"); } return 1; } return 1; }