SA-MP Forums Archive
Sendclientmessage error - 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: Sendclientmessage error (/showthread.php?tid=428619)



Sendclientmessage error - NicholasA - 06.04.2013

else SendClientMessage (playerid, -1, "NOTICE: Player is already muted.");

is what i have and it gives me error 029 invalid expression assumed zero


Re: Sendclientmessage error - Threshold - 06.04.2013

You have a space between the bracket and SendClientMessage...


Re: Sendclientmessage error - Kenrque - 06.04.2013

typing in script.. code
[code]else {
SendClientMessage(playerid,COLOR,"NOTICE:Player is muted.");
}
// or
else {
Else(playerid);
}
//in script add.
stock Else(playerid)
{
SendClientMessage(playerid,COLOR,"NOTICE:Player is muted");
}
return 1;
}


Re: Sendclientmessage error - Skyrise - 06.04.2013

Quote:
Originally Posted by Kenrque
Посмотреть сообщение
typing in script.. code
[code]else {
SendClientMessage(playerid,COLOR,"NOTICE:Player is muted.");
}
// or
else {
Else(playerid);
}
//in script add.
stock Else(playerid)
{
SendClientMessage(playerid,COLOR,"NOTICE:Player is muted");
}
return 1;
}
Make another method for the sake of sending one constant message? I wouldn't suggest it.


Re: Sendclientmessage error - Kenrque - 06.04.2013

That's what he did for a control to one hundred propelled him mute for example if fathers players mutate, and the player is mutated else that I put


Re: Sendclientmessage error - Threshold - 06.04.2013

Can't... understand... above.... post...
Creating a stock function to execute a single line of code is definitely useless and generally a retarded way of doing such a thing, especially when you are given all parameters like 'playerid' in this instance... For now, I would consider you do a bit more discovery of the pawno language and scripting... basics...
SA-MP wiki should be more than enough, or the 'Search' button when applicable.