03.12.2016, 17:57
I have this stock:
If pLang == 0, it send the message ro[], else it sends the message eng[].
How can I make it so when you use: SS(playerid, COLOR_WHITE, "Test message");
it would send a normal message to the user, instead of checking if the variable is 0 or 1?
Код:
stock SS(playerid, color, eng[], ro[])
{
if(playerVariables[playerid][pLang] == 0) //Ro
{
SCM(playerid, color, ro);
}
else if(playerVariables[playerid][pLang] == 1) //En
{
SCM(playerid, color, eng);
}
return 1;
}
How can I make it so when you use: SS(playerid, COLOR_WHITE, "Test message");
it would send a normal message to the user, instead of checking if the variable is 0 or 1?

