14.03.2012, 15:16
Thanks guys, it works now. But i just ran into another problem with whirlpool.
When the player has to log in, this code is executed:
But I get these errors:
Hope you can help. Thanks.
When the player has to log in, this code is executed:
pawn Code:
if(dialogid == 2)
{
if(!response)
{
StopAudioStreamForPlayer(playerid);
SendClientMessage(playerid, COLOR_SYSTEMRED, "( ! ) You must log in to play on this server. Please come again soon");
Kick(playerid);
gPlayerLogged[playerid] = 0;
}
new tmp, hashed_password[129];
tmp = dj(file, "Password");
WP_Hash(hashed_password, sizeof(hashed_password), inputtext);
if(hashed_password != tmp)
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "{FFFF00}Hopes Hills RPG Account", "{AF0000}Incorrect Password!\n{FFFFFF}Enter your Password", "Login", "Quit");
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "( ! ) You have successfully Logged In!");
GivePlayerMoney(playerid, djInt(file, "Money"));
PlayerInfo[playerid][pBanned] = djInt(file, "Banned");
LoadUserData(playerid);
gPlayerLogged[playerid] = 1;
OnceLogged[playerid] = 1;
}
Code:
C:\Users\Simon\Desktop\samp server\gamemodes\rpg.pwn(175) : error 006: must be assigned to an array C:\Users\Simon\Desktop\samp server\gamemodes\rpg.pwn(178) : error 033: array must be indexed (variable "hashed_password") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.