30.03.2013, 09:48
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
OnPlayerSpawn
Under OnDialogResponse
And there's my problem.
When i type /mylang it doesn't show anything.
all other zcmd commands work , but this not .
So i will show u how did i make it
Quote:
new Kalba[MAX_PLAYERS]; |
Quote:
ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"La nguage","Lietuvių\nEnglish","Select",""); |
Quote:
if(dialogid == 10) { if(response) { if(listitem == 0) { Kalba[playerid] = 1; } if(listitem == 1) { Kalba[playerid] = 2; } } return 1; } |
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; } |