Argument Type Mismatch
#1

I Added Score Limit To Chat In-Game, Have Added On PMs But Can't Add on OnPlayerText as giving error, Argument type mismatch
Code:-
Код:
public OnPlayerText(playerid, text[])
{
	if(playerData[playerid][playerLoggedIn])
	{
	    if (playerData[playerid][playerScore] >= 20)
    	{
            SendClientMessage(playerid, "{FFDC2E}[ERROR] {FFFFFF}You Must Have More Than 20 Score To Chat!");
	        return 0;
	    }
Error Line:-

Код:
            SendClientMessage(playerid, "{FFDC2E}[ERROR] {FFFFFF}You Must Have More Than 20 Score To Chat!");
Hope Will be helped!
Reply
#2

https://sampwiki.blast.hk/wiki/SendClientMessage

(playerid, color, const message[])
Reply
#3

I Meant, OnPlayerText, What are mistakes?
Reply
#4

The problem is in your SendClientMessage. You didn't use it right, as Arthur previously mentioned.

PHP код:
 SendClientMessage(playeridCOLOR_RED"You must have more than 20 score to chat"); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)