12.06.2011, 14:26
Код:
if (strcmp("/pcar", cmdtext, true, 10) == 0) { if (strcmp(pName,"[MG]Dimi", true)) { ShowPlayerDialog(playerid,Dimi_Car_Menu,DIALOG_STYLE_LIST, "{FFFF00}Private Car Selection", "{FFFFFF}SLOT 1:{0FFF00} Sultan \n{FFFFFF}SLOT 2:{FF0000} Empty Slot", "Spawn", "Cancel"); } if (strcmp(pName,"[Air]Dule", true)) { ShowPlayerDialog(playerid,Dule_Car_Menu,DIALOG_STYLE_LIST, "{FFFF00}Private Car Selection", "{FFFFFF}SLOT 1:{0FFF00} Jester \n{FFFFFF}SLOT 2:{FF0000} Empty Slot", "Spawn", "Cancel"); } if (strcmp(pName,"[Air]Beastboy", true)) { ShowPlayerDialog(playerid,Beastboy_Car_Menu,DIALOG_STYLE_LIST, "{FFFF00}Private Car Selection", "{FFFFFF}SLOT 1:{0FFF00} Turismo \n{FFFFFF}SLOT 2:{FF0000} Empty Slot", "Spawn", "Cancel"); } if (strcmp(pName,"[Air]Proliner", true)) { ShowPlayerDialog(playerid,Proliner_Car_Menu,DIALOG_STYLE_LIST, "{FFFF00}Private Car Selection", "{FFFFFF}SLOT 1:{0FFF00} Elegy \n{FFFFFF}SLOT 2:{FF0000} Empty Slot", "Spawn", "Cancel"); } if (strcmp(pName,"[Air]Zezima", true)) { ShowPlayerDialog(playerid,Zezima_Car_Menu,DIALOG_STYLE_LIST, "{FFFF00}Private Car Selection", "{FFFFFF}SLOT 1:{0FFF00} Buffalo \n{FFFFFF}SLOT 2:{FF0000} Empty Slot", "Spawn", "Cancel"); } if (strcmp(pName,"[Air]Kevin", true)) { ShowPlayerDialog(playerid,Kevin_Car_Menu,DIALOG_STYLE_LIST, "{FFFF00}Private Car Selection", "{FFFFFF}SLOT 1:{0FFF00} Bullet \n{FFFFFF}SLOT 2:{FF0000} Empty Slot", "Spawn", "Cancel"); } if (strcmp(pName,"[Air]Bogdan", true)) { ShowPlayerDialog(playerid,Bogdan_Car_Menu,DIALOG_STYLE_LIST, "{FFFF00}Private Car Selection", "{FFFFFF}SLOT 1:{0FFF00} Buffalo \n{FFFFFF}SLOT 2:{FF0000} Empty Slot", "Spawn", "Cancel"); } else { SendClientMessage(playerid,0xFF0000FF,"ERROR: You don't own a private car"); return 1; } return 1; }
P.S. I have defined everything, add everything into Dialog Response etc. Only Problem is that the strcmp is doing opposite from thing it should do