public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new file[256];
new string[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(file, sizeof(string), "\\Users\\%s.ini", pname);
if(dialogid == 1)
{
if(response)
{
new tmp[256];
tmp = dini_Get(file, "hashPW");
if(!dini_Exists(file))
{
SendClientMessage(playerid, COLOR_RED, "You are not registered! [KICK]");
Kick(playerid);
}
else if(udb_hash(inputtext) != strval(tmp))
{
format(string, 256, "Wrong Password For %s!", GetPlayerNameEx(playerid));
SendClientMessage(playerid, COLOR_YELLOW2, string);
}
else
{
//Codes
if(!response)
{
// Codes
}
}
}
}
}
return 1;
}
if(!response)
{
// Codes
}
if(dialogid == 1)
{
|
Originally Posted by _Ben_[Fux-c.co.il RP
]
Thats wierd . Take this line: pawn Код:
Put it under: pawn Код:
Thats should work . |
new array[5];
array[6]=10; //Script Hault Here
new funnyword[5];
funnyword="Pickleweasle"; //String input is too large for the array