Gamemode with 2 Languages Help!
#7

I have an big dialog and it is crash all of them!
but why i am do it right
Hey i want to say i have seen the try of this post: https://sampforum.blast.hk/showthread.php?tid=236758
Please help me
i use this method:
Код:
enum pInfo
{
    pEnglish,
    pSerbian,
}
new PlayerInfo[MAX_PLAYERS][pInfo];


In your language dialog make that if player chooses English then = 1 and Serbian = 0 if Serbian then = 1 and English = 0.

Now make command like that
pawn Code:

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/kill", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid,0);
        if(PlayerInfo[playerid][pEnglish] == 1)
        {
            SendClientMessage(playerid,0xFF0000FF,"You suck");
        }
        if(PlayerInfo[playerid][pSerbian] == 1)
        {
            SendClientMessage(playerid,0xFF0000FF,"You suck in serbian");
        }
    }
    return 0;
}
is in page number 2!
Please help!
i have make it like this:
Код:
if (strcmp("/kill", cmdtext, true, 10) == 0)
    {
        if(PlayerInfo[playerid][pEnglish] == 1)
        {
            SetPlayerHealth(playerid,0);
            SendClientMessage(playerid,0xFF0000FF,"You suck");
        }
        if(PlayerInfo[playerid][pSerbian] == 1)
        {
             SetPlayerHealth(playerid,0);
            SendClientMessage(playerid,0xFF0000FF,"You suck in serbian");
        }
    } // i do not see return here why?
Help me i need this solution!
Reply


Messages In This Thread
Gamemode with 2 Languages Help! - by HotPlayer - 17.10.2011, 09:32
Re: Gamemode with 2 Languages Help! - by nilanjay - 17.10.2011, 09:44
Re: Gamemode with 2 Languages Help! - by RoboN1X - 17.10.2011, 09:56
Re: Gamemode with 2 Languages Help! - by HotPlayer - 17.10.2011, 12:35
Re: Gamemode with 2 Languages Help! - by XFlawless - 17.10.2011, 12:37
Re: Gamemode with 2 Languages Help! - by SmiT - 17.10.2011, 12:41
Re: Gamemode with 2 Languages Help! - by HotPlayer - 17.10.2011, 14:01
Re: Gamemode with 2 Languages Help! - by HotPlayer - 17.10.2011, 16:58

Forum Jump:


Users browsing this thread: 2 Guest(s)