14.01.2010, 11:31
When i go in my server it logs me in. (automaticly) It's getting data.
When i try to use admin commands it still says i am not logged in and such.
So i type /login and it logs me in.
Also the textdraw doesn't go away anymore when it's fake logging me in.
Here a short movie: www.nix.turkdale.nl/weird.wmv
I hope that somebody will be able to help me.
When i try to use admin commands it still says i am not logged in and such.
So i type /login and it logs me in.
Also the textdraw doesn't go away anymore when it's fake logging me in.
Here a short movie: www.nix.turkdale.nl/weird.wmv
pawn Код:
//////onplayerconnect/////////////////////////
new IP[56];
GetPlayerIp(playerid, IP, 56);
if(strcmp(dini_Get(pInfo[playerid][name], "IP"), IP)== 0) OnPlayerLogin(playerid);
//////onplayerlogin//////////////////////////////
public OnPlayerLogin(playerid)
{
new string[265];
pInfo[playerid][logged] = 1;
pInfo[playerid][money] = dini_Int(udb_encode(pInfo[playerid][name]), "money");
pInfo[playerid][score] = dini_Int(udb_encode(pInfo[playerid][name]), "score");
pInfo[playerid][level] = dini_Int(udb_encode(pInfo[playerid][name]), "level");
pInfo[playerid][perfect] = dini_Int(udb_encode(pInfo[playerid][name]), "perfect");
new IP[56];
GetPlayerIp(playerid, IP, 56);
dini_Set(udb_encode(pInfo[playerid][name]), "IP", IP);
format(string, sizeof(string), "~r~Information: ~w~your now logged in! [~r~Score: ~w~%d] [~r~Admin Level: ~w~%d] [~r~Premium Member:~w~ %d] [~r~Money: ~w~%d]", pInfo[playerid][score], pInfo[playerid][level], pInfo[playerid][perfect], pInfo[playerid][money]);
SendMsg(playerid, 5000, string);
GivePlayerMoney(playerid,pInfo[playerid][money]);
SetPlayerScore(playerid,pInfo[playerid][score]+GetPlayerScore(playerid));
}