problem with the mysql admin
#3

did you reset the enum or variable because the server for example thinks you're still id 0 all the time unless you reset all vars on disconnect so it doesnt read old data

temporary solution for this is

OnPlayerDisconnect(playerid)
{
pInfo[playerid][Admin] = 0;
return 1;
}


for means for all users with the playerid = playerid (e.g. 0), it will reset it to 0 so if another player comes on with playerid of 0, their admin level will be 0 since the previous player (with id) disconnected and the server set it to 0.
Reply


Messages In This Thread
problem with the mysql admin - by wallen - 07.03.2018, 18:48
Re: problem with the mysql admin - by Sew_Sumi - 07.03.2018, 19:25
Re: problem with the mysql admin - by rfr - 07.03.2018, 19:55
Re: problem with the mysql admin - by wallen - 07.03.2018, 19:57
Re: problem with the mysql admin - by Sew_Sumi - 07.03.2018, 21:55

Forum Jump:


Users browsing this thread: 3 Guest(s)