error 035: argument type mismatch (argument 3) ... Please Help me
#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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)