Quick post, will add more info tomorrow (heading out) I'm trying to use "GetPlayerSkin(playerid)" under "OnPlayerRequestSpawn(playerid)" but it only returns 0; I have tried commenting out almost everything but "printf("asdasd %i", GetPlayerSkin(playerid));" (Which is located under OnPlayerRequestSpawn) and not only commented out in there, but in OnPlayerConnect, and almost the rest of the script (without it erroring). I tried only adding one skin with skinID 100. Still nothing. It shows in console asdasd 0. even though i spawned with the skin 100... But when I create a single script by itself it works.Works great. spawned with skin 265 and the printout sent asdasd 265.Код:#include <a_samp> main(){} public OnPlayerRequestSpawn(playerid) { printf("asdasd %i", GetPlayerSkin(playerid)); return 1; } public OnGameModeInit() { AddPlayerClass(265, 1958.3783, 1343.1572, 15.3746, 270.1425,0,0,0,0,-1,-1); return 1; }
Got me stumped.
What could be causing this? Plugins? Includes?
EDIT: I've narrowed it down to one of my includes. Will find out what one is causing it tomorrow and then investigate that include file. then post results.
WILL EDIT POST WITH MORE INFO TOMORROW!
new Skinid = GetPlayerSkin(playerid);
public OnPlayerRequestSpawn(playerid)
{
printf("asdasd %i", Skinid);
return 1;
}
PHP код:
|