Sendclientmessage error
#1

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

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

You have a space between the bracket and SendClientMessage...
Reply
#3

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;
}
Reply
#4

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.
Reply
#5

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)