Need help with language system
#1

so i made myself language system . The problem is my zcmd command doesn't work ;/

So i will show u how did i make it

Quote:

new Kalba[MAX_PLAYERS];

OnPlayerSpawn

Quote:

ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"La nguage","Lietuvių\nEnglish","Select","");

Under OnDialogResponse

Quote:

if(dialogid == 10)
{
if(response)
{
if(listitem == 0)
{
Kalba[playerid] = 1;
}
if(listitem == 1)
{
Kalba[playerid] = 2;
}
}
return 1;
}

And there's my problem.

When i type /mylang it doesn't show anything.
Quote:

COMMAND:mylang(playerid, params[])
{
if(Kalba[playerid]==1) SendClientMessage(playerid, 0xFF9900AA, "Tavo kalba: Lietuvių");
if(Kalba[playerid]==2) SendClientMessage(playerid, 0xFF9900AA, "Your language: English");
return 1;
}

all other zcmd commands work , but this not .
Reply


Messages In This Thread
Need help with language system - by Immortal_LTU - 30.03.2013, 09:48
Re: Need help with language system - by Immortal_LTU - 30.03.2013, 10:45
Re: Need help with language system - by Broker - 30.03.2013, 11:26
Re: Need help with language system - by Immortal_LTU - 30.03.2013, 12:45
Re: Need help with language system - by Immortal_LTU - 30.03.2013, 16:41
Re: Need help with language system - by MrTinder - 30.03.2013, 16:44
Re: Need help with language system - by Immortal_LTU - 30.03.2013, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)