24.05.2011, 15:19
Quote:
Hello,
I got a question about the switch() function. Here is an example: pawn Код:
Any ideas? Thanks |
pawn Код:
switch(reason)
{
case 0:
{
format(string, sizeof(string), "[%d] %s has left the server. (Crashed)",playerid, pName);
}
case 1:
{
format(string, sizeof(string), "[%d] %s has left the server. (Leaving)",playerid, pName);
}
case 2:
{
format(string, sizeof(string),"[%d] %s has left the server. (Kicked/Banned)",playerid, pName);
}
default:
{
//The else thingy
}
}