Commands Error Message Error - 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: Commands Error Message Error (
/showthread.php?tid=409740)
Commands Error Message Error -
se7evolution - 22.01.2013
Hello,
I just need some help, i think its a simple bug fix but couldn't find out how.
Error
pawn Код:
error 035: argument type mismatch (argument 2)
This is what i have as includes.
pawn Код:
#include <a_samp>
#include <YSI\y_ini>
#include <zcmd>
#include <streamer>
OnPlayercommandPerformed
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
return SendClientMessage(playerid, RED, "Ops! Unknown Command!");
return 1;
}
Re: Commands Error Message Error -
FUNExtreme - 22.01.2013
I assume the problem is with the SendClientMessage line? (You didn't say which line the error was on)
The error means that the second argument has the wrong type. It should be a hex colour (or decimal)
Re: Commands Error Message Error -
Vexus - 22.01.2013
Have you made sure you defined the color 'RED' ??
For example.
Maybe that might fix your problem!