27.02.2012, 19:04
hey , i have a problem, whene a player connect in server , it set him vip , so it must be vip=0 not more , and sometimes it set them vip=0(it work correctly here)
the Public ondialog:
Public onplayerregister:
u can see that i didn't give a value for the Vip[playerid] i hope you make it..
the Public ondialog:
pawn Код:
if(IsPlayerConnected(playerid)) {
if(dialogid == REGISTER) {
if(response == 1) {
OnPlayerRegister(playerid, inputtext);
}
}
if(dialogid == LOGIN) {
if(response == 1) {
new Password[25];
strmid(Password, inputtext, 0, strlen(inputtext), 25);
OnPlayerLogin(playerid, Password);
}
}
}
pawn Код:
public OnPlayerRegister(playerid, Password[])
{
if(IsPlayerConnected(playerid)) {
if(strlen(Password) == 0) return ShowPlayerDialog(playerid, REGISTER, DIALOG_STYLE_INPUT, "{00CCFF}Registration", "{FFFFFF}Please enter password for registration \n\n\n{FF0000}Registration is required", "Register", "");
dini_Create(file[playerid]);
dini_Set(file[playerid], "Password", Password);
IsLogged[playerid] = true;
SendClientMessage(playerid, COLOR_MODRA, " *You've successfully registered an account !");
}
return 1;
}