case 7: NikoGPSEntretenimento()
case 8: NikoGPSEmpresas()
#define NikoGPSEntretenimento() { new gpsEntretenimento[] = "1.\tCorrida de Vacas\n2.\tPuteiro\n3.\tCasa Noturna\n4.\tBoliche\n5.\tBalada\n6.\tBarzinho\n7.\tSex Shop\n8.\t8 Ball\n9.\tRally\n10.\tStunt"; ShowPlayerDialog(playerid,DIALOG_GPS_ENTRETENIMENTO, DIALOG_STYLE_LIST,"{00ff00}G.P.S. {ff0000}BSL{00ff00} Entretenimento:",gpsEntretenimento,"Selecionar","Voltar"); }
#define NikoGPSEmpresas() { new gpsEmpresas[] = "1.\tAluguel de Motos\n2.\tAluguel de Carros\n3.\tEmpresa de Telefonia\n4.\tCentral dos Postos\n5.\tEnergia Elйtrica\n6.\tTransportadora\n7.\tAtualizaзхes\n8.\tAnъncios\n9.\tMecвnico\n10.\tLojas 24/7\n11.\tPaintball\n12.\tKart\n13.\tБgua\n14.\tConcessionбria\n15.\tHospital\n16.\tPay and Spray\n17.\tSprunk\n18.\tAuto-Escola\n19.\tLoja Binco\n20.\tPedбgio\n21.\tBar\n22.\tRestaurante\n23.\tLotйrica\n24.\tCorrida de Vacas\n25.\tTunning\n26.\tArmas Norte\n27.\tArmas Sul"; ShowPlayerDialog(playerid,DIALOG_GPS_EMPRESAS, DIALOG_STYLE_LIST,"{00ff00}G.P.S. {ff0000}BSL{00ff00} Empresas:",gpsEmpresas,"Selecionar","Voltar"); }
switch ( <variable> ) {
case this-value:
Code to execute if <variable> == this-value
break;
case that-value:
Code to execute if <variable> == that-value
break;
...
default:
Code to execute if <variable> does not equal the value following any of the cases
break;
}
I'm not using a function
it is a directive... and if you read it, you can see there is colon. |
Function cannot be used and colon should be placed at the end. |
case 7: NikoGPSEntretenimento() ;
case 8: NikoGPSEmpresas();