GetPlayerSkin return -1 ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetPlayerSkin return -1 ? (
/showthread.php?tid=616835)
GetPlayerSkin return -1 ? -
MerryDeer - 11.09.2016
Hi,
I use array where i select array item using getplayerskin, but in crash detect i get -1, with CJ, how this can by?
SkinOffSet[GetPlayerSkin(playerid)][0]
Re: GetPlayerSkin return -1 ? -
thefirestate - 11.09.2016
Can you tell me how do you use this variable later on? Some example command.
Re: GetPlayerSkin return -1 ? -
MerryDeer - 11.09.2016
Nowhere it's just command, getplayerskin and setplayerattachedobject using skin in array
Re: GetPlayerSkin return -1 ? -
Threshold - 11.09.2016
I don't think GetPlayerSkin returns -1... it returns 0 if the skin ID is invalid. Can you show us your errors?