Little question about "argument type mismatch"
#1

So I've been scripting some stuff, and when I tried to compile this:

pawn Код:
new rSkin = random(sizeof(RandSkinsMale));
SetPlayerSkin(playerid, RandSkinsMale[rSkin]);
It gives me this:

Код:
C:\Program Files (x86)\*****\samysql\gamemodes\****.pwn(1813) : error 035: argument type mismatch (argument 2)
I've been searching SA:MP forums, and ******, and eventually I found the answer to the problem, but I can't seem to understand that. I tried everything to fix it, but that error just won't go away :/

Thanks in advance!


By the way, this is the "RandSkinsMale" statement thingy:

pawn Код:
new RandSkinsMale[6][] =
{
    101,
    17,
    22,
    221,
    240,
    46
};


Soz for the [ b] [/ b] it looks nicer
Reply
#2

pawn Код:
new RandSkinsMale[6] =
{
    101,
    17,
    22,
    221,
    240,
    46
};
Here we go, this compiled for me
Reply
#3

Thanks!
Wow that I did not see that lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)