error 035: argument type mismatch (argument 3) ... Please Help me
#1

-------CLOSED---------
Reply
#2

Show me TalkMessage stock or public
Reply
#3

its stock
Reply
#4

Show me that stock code
Reply
#5

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)
Reply
#6

I mean stock TalkMessage
Reply
#7

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;
}

Reply
#8

You don't understand, I want to see stock TalkMessage

Example

stock TalkMessage(pllayerid , text)
{
dsfsdf
}

Like that not command code or error code
Reply
#9

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);
}

Reply
#10

search stock TalkMessage / public TalkMessage and give us...

noob!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)