Argument Type Mismatch - 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: Argument Type Mismatch (
/showthread.php?tid=643139)
Argument Type Mismatch -
BlackLineCnR - 14.10.2017
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!
Re: Argument Type Mismatch -
Kane - 14.10.2017
https://sampwiki.blast.hk/wiki/SendClientMessage
(playerid, color, const message[])
Re: Argument Type Mismatch -
BlackLineCnR - 14.10.2017
I Meant, OnPlayerText, What are mistakes?
Re: Argument Type Mismatch -
Escobabe - 14.10.2017
The problem is in your SendClientMessage. You didn't use it right, as Arthur previously mentioned.
PHP код:
SendClientMessage(playerid, COLOR_RED, "You must have more than 20 score to chat");