12.04.2010, 12:39
In my mod GetPlayerSkin(playerid) works wrongly. It gets me previous skin that i used, but not that i have.
I tried to do like sayed here: http://forum.sa-mp.com/index.php?topic=166501.0 but sill same thing
Here is code:
But it gives me not that skin that "it gets", as i said he gets and gives previosly used skin
_________________________________________________
In short GetPlayerSkin(playerid) returns not that skin that I have
Here is what I got when I /getskin :
command /getskin
But if I'll give me skin with standart GF command /setstat ID 4(Model) SkinID /getskin returns correct skin
In both cases I use SetPlayerSkin(playerid, SkinID), but It works really normally in second case(/setstat)
I tried to do like sayed here: http://forum.sa-mp.com/index.php?topic=166501.0 but sill same thing
Here is code:
Code:
skin[playerid] = GetPlayerSkin(playerid); PlayerInfo[playerid][pModel] = skin[playerid]; SetPlayerSkin(playerid, skin[playerid]);
_________________________________________________
In short GetPlayerSkin(playerid) returns not that skin that I have
Here is what I got when I /getskin :
command /getskin
pawn Code:
if(strcmp(cmd, "/getskin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
format(string, sizeof(string), "* Your skin: %d", GetPlayerSkin(playerid));
SendClientMessage(playerid, COLOR_GREY,string);
return 1;
}
return 1;
}
But if I'll give me skin with standart GF command /setstat ID 4(Model) SkinID /getskin returns correct skin
In both cases I use SetPlayerSkin(playerid, SkinID), but It works really normally in second case(/setstat)