SA-MP Forums Archive
Problem with 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)
+--- Thread: Problem with argument type mismatch (/showthread.php?tid=505092)



Problem with argument type mismatch - Raphy - 06.04.2014

Greetings. My GameMode gives me an error and I don't know how to fix it. I tried looking it up but I couldn't find anything.

The error is: GameMode.pwn(7682) : error 035: argument type mismatch (argument 2)

Line 7682:
pawn Код:
SendClientMessage(playerid, WHITE, "{F81414}__________|Admins|__________");
Thanks in advance.


Re: Problem with argument type mismatch - StuartD - 06.04.2014

Try using -1 instead of White, it might be the define WHITE causing the issue. I've had that before. How have you done your #define WHITE?


Re: Problem with argument type mismatch - DerickClark - 06.04.2014

There is no error, in that code. post the full code. Maybe try using -1


Re: Problem with argument type mismatch - Raphy - 06.04.2014

Thank you for your help. I tried -1 and solved the error.