new lightstring[128];
new dialog[512] = \"Alkatrész\\tÁllapot\\n\";
if(vInfo[vehicle][vLights] == DAMAGE)
format(lightstring,sizeof(lightstring),\"Lámpák\\tJavítani kell\");
else if(vInfo[vehicle][vLights] == CLEAR)
format(lightstring,sizeof(lightstring),\"Lámpák\\tNem sérült\");
strcat(lightstring,dialog);
ShowPlayerDialog(playerid,DIALOG_KOCSI_LAMPA,DIALOG_STYLE_TABLIST_HEADERS,\"Lámpák\",dialog,\"Választ\",\"Vissza\");
new Value[MAX_PLAYERS];
stock GetValueName(playerid)
{
new ValueName[16];
switch(Value[playerid])
{
case 0: ValueName = \"Zero\";
case 1: ValueName = \"One\";
case 2: ValueName = \"Two\";
}
return ValueName;
}
COMMAND:value(playerid)
{
format(str, sizeof(str), \"The name of the value is: %s\", GetValueName(playerid));
SendClientMessage(playerid, -1, str);
return 1;
}