error 035: argument type mismatch (argument 3) ... Please Help me - 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: error 035: argument type mismatch (argument 3) ... Please Help me (
/showthread.php?tid=542424)
CLOSED -
Justinclaveria123 - 19.10.2014
-------
CLOSED---------
Re: error 035: argument type mismatch (argument 3) ... Please Help me -
NeverGetAlone - 19.10.2014
Show me TalkMessage stock or public
Re: error 035: argument type mismatch (argument 3) ... Please Help me -
Justinclaveria123 - 19.10.2014
its stock
Re: error 035: argument type mismatch (argument 3) ... Please Help me -
NeverGetAlone - 19.10.2014
Show me that stock code
Re: error 035: argument type mismatch (argument 3) ... Please Help me -
Justinclaveria123 - 19.10.2014
Quote:
stock ProcessChatText(playerid, text[])
{
new useindex=1;
// Handle shouting prefix (!)
if(text[0] == '!' && strlen(text) > 1) {
if(text[1] == ' ') useindex++;
TalkMessage(SHOUT_DISTANCE, playerid,COLOR_MAGENTA, "*shouts :", text[useindex]);
return;
}
// Handle quiet prefix (#)
if(text[0] == '#' && strlen(text) > 1) {
if(text[1] == ' ') useindex++;
TalkMessage(LOW_DISTANCE, playerid,COLOR_MAGENTA, "*says :", text[useindex]);
return;
}
// Send to other players in range and fade
TalkMessage(TALK_DISTANCE, playerid, "", text);
}
|
because i want to put colors on that talkmessage , when i remove that COLOR_MAGENTA, it don't have error , but if i add that , it gives me error ( error 035 argument mismatch)
Re: error 035: argument type mismatch (argument 3) ... Please Help me -
NeverGetAlone - 19.10.2014
I mean stock TalkMessage
Re: error 035: argument type mismatch (argument 3) ... Please Help me -
Justinclaveria123 - 19.10.2014
you mean this? because its two , i add on this line but its same error
Quote:
// /low
if(!strcmp("/l", cmd, true) || !strcmp("/low", cmd, true))
{
message = strrest(cmdtext,idx);
if(!strlen(message)) {
CmdUsageMessage(playerid, "(/l)ow [text]");
return 1;
}
TalkMessage(LOW_DISTANCE, playerid,"*says", message);
return 1;
}
// /shout
if(!strcmp("/s", cmd, true) || !strcmp("/shout", cmd, true))
{
message = strrest(cmdtext,idx);
if(!strlen(message)) {
CmdUsageMessage(playerid, "(/s)hout [text]");
return 1;
}
TalkMessage(SHOUT_DISTANCE, playerid, "*shouts", message);
return 1;
}
|
Re: error 035: argument type mismatch (argument 3) ... Please Help me -
NeverGetAlone - 19.10.2014
You don't understand, I want to see stock TalkMessage
Example
stock TalkMessage(pllayerid , text)
{
dsfsdf
}
Like that not command code or error code
Re: error 035: argument type mismatch (argument 3) ... Please Help me -
Justinclaveria123 - 19.10.2014
there is not talk message on stock , this is the code for stock that i saw
Quote:
stock ProcessChatText(playerid, text[])
{
new useindex=1;
// Handle shouting prefix (!)
if(text[0] == '!' && strlen(text) > 1) {
if(text[1] == ' ') useindex++;
TalkMessage(SHOUT_DISTANCE, playerid, "*shouts :", text[useindex]);
return;
}
// Handle quiet prefix (#)
if(text[0] == '#' && strlen(text) > 1) {
if(text[1] == ' ') useindex++;
TalkMessage(LOW_DISTANCE, playerid, "*says :", text[useindex]);
return;
}
// Send to other players in range and fade
TalkMessage(TALK_DISTANCE, playerid, "", text);
}
|
Re: error 035: argument type mismatch (argument 3) ... Please Help me -
0x41726d79 - 19.10.2014
search stock TalkMessage / public TalkMessage and give us...
noob!