sctrmp to zcmd
#1

sctrmp

Quote:

if(!strcmp(cmdtext, "/test"))
{
switch(GetPlayerLanguage(playerid))
{
case ENG:
{
SendClientMessage(playerid, -1, "Your language is English");
}
case LTU:
{
SendClientMessage(playerid, -1, "Tavo kalba yra lietuviu");
}
}
return 1;
}

how could i convert this into zcmd ? . Can someone convert it for me ? . Thanks .
Reply
#2

pawn Код:
CMD:test(playerid, params[])
{
     switch(GetPlayerLanguage(playerid))
     {
          case ENG:
          {
               SendClientMessage(playerid, -1, "Your language is English");
          }
          case LTU:
          {
               SendClientMessage(playerid, -1, "Tavo kalba yra lietuviu");
          }
     }
     return 1;
}
Reply
#3

here you go
pawn Код:
CMD:test(playerid, params[])
{
    switch(GetPlayerLanguage(playerid))
    {
        case ENG:
    {
        SendClientMessage(playerid, -1, "Your language is English");
    }
    case LTU:
    {
        SendClientMessage(playerid, -1, "Tavo kalba yra lietuviu");
    }
    return 1;
}
Reply
#4

2late


-- delete.
Reply
#5

Quote:
Originally Posted by kamzaf
Посмотреть сообщение
pawn Код:
CMD:test(playerid, params[])
{
     switch(GetPlayerLanguage(playerid))
     {
          case ENG:
          {
               SendClientMessage(playerid, -1, "Your language is English");
          }
          case LTU:
          {
               SendClientMessage(playerid, -1, "Tavo kalba yra lietuviu");
          }
     }
     return 1;
}
Thanks +rep .

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)