SA-MP Forums Archive
[BUG]GetPlayerSkin at GMX? And other! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: [BUG]GetPlayerSkin at GMX? And other! (/showthread.php?tid=306383)



[BUG]GetPlayerSkin at GMX? And other! - 'Pawno. - 26.12.2011

Hello SA-MP Players and Scripters.

I found an little bug.

I have an Login & Register System and if i use the GetPlayerSkin Function, and i make a gmx (console->gmx or SendRconCommand("gmx") after the gmx my Player-Skin is "0".

All other Data is saved, Money etc. but only the Skin not.

Then i have another bug.

If i use gmx, and use gmx after the first gmx, my player-states are all "0" or password is nothing?

Can anyone confirm it?

PS: Sorry for my bad english haha xD im from germany :P


Re: [BUG]GetPlayerSkin at GMX? And other! - HuSs3n - 26.12.2011

had the same issue here
i suggest using a custom /gmx command instead of the default one

exmaple:

Code:
CMD:gmx(playerid,params[])
{
   if(!IsPlayerAdmin(playerid)) return 0;
   foreach(Player, x)
   {
         CallRemoteFunction("OnPlayerDisconnect", "ii", x, 101);
   }
   CallRemoteFunction("OnGameModeExit", "");
   GameModeExit();
   return 1;
}
or this https://sampforum.blast.hk/showthread.php?tid=250369