siema ![]()
mam przykładowe menu:
public XXX(id, key)
{
switch (key)
{
case 0:
{
ColorChat(id, YELLOW, "%s %s", info, forum);
}
case 1:
{
ColorChat(id, YELLOW, "%s %s", info, forum);
}
case 2:
{
ColorChat(id, YELLOW, "%s %s", info, forum);
}
case 3:
{
ColorChat(id, YELLOW, "%s %s", info, forum);
}
case 4:
{
ColorChat(id, YELLOW, "%s %s", info, forum);
}
case 5:
{
ColorChat(id, YELLOW, "%s %s", info, forum);
}
case 6:
{
ColorChat(id, YELLOW, "%s %s", info, forum);
}
case 7:
{
ColorChat(id, YELLOW, "%s %s", info, forum);
}
case 8:
{
ColorChat(id, YELLOW, "%s %s", info, forum);
}
}
}
i moje pytanie jest takie jak zrobić aby nie było "tyle tych" case, tylko po prostu np. jedno case, które zastąpi wszystkie inne?


Dodatki SourceMod




Temat jest zamknięty









