Posts: 398
Threads: 135
Joined: Nov 2012
Reputation:
0
else SendClientMessage (playerid, -1, "NOTICE: Player is already muted.");
is what i have and it gives me error 029 invalid expression assumed zero
Posts: 3,085
Threads: 37
Joined: Nov 2012
Reputation:
0
You have a space between the bracket and SendClientMessage...
Posts: 38
Threads: 13
Joined: Jun 2012
Reputation:
0
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;
}
Posts: 145
Threads: 6
Joined: Jun 2012
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.
Posts: 38
Threads: 13
Joined: Jun 2012
Reputation:
0
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
Posts: 3,085
Threads: 37
Joined: Nov 2012
Reputation:
0
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.