Little question about "argument type mismatch" - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Little question about "argument type mismatch" (
/showthread.php?tid=253651)
Little question about "argument type mismatch" -
alpha500delta - 07.05.2011
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
Re: Little question about "argument type mismatch" -
Haydz - 07.05.2011
pawn Код:
new RandSkinsMale[6] =
{
101,
17,
22,
221,
240,
46
};
Here we go, this compiled for me
Re: Little question about "argument type mismatch" -
alpha500delta - 07.05.2011
Thanks!
Wow that I did not see that lol.