09.04.2018, 13:36
It's now working, but i can't output an error, because then it doesn't work anymore
Код:
CMD:mdc(playerid, params[]) { if(eingeloggt[playerid] == 0)return SendClientMessage(playerid,COLOR_RED,"Du bist noch nicht eingeloggt."); if(pInfo[playerid][fraktion] != 1)return SendClientMessage(playerid,COLOR_RED,"Du bist kein Mitglied vom SFPD."); if(pInfo[playerid][fraktion] == 1 && pInfo[playerid][duty] != 1)return SendClientMessage(playerid,COLOR_RED,"Du bist nicht im Dienst."); for(new i=0; i <sizeof(sfpdcars); i++) { if(!IsPlayerInAnyVehicle(playerid))continue; if(GetPlayerVehicleID(playerid) != sfpdcars[i])continue; if(i == sizeof(sfpdcars))continue; ShowPlayerDialog(playerid,MDCDIALOG1,DIALOG_STYLE_INPUT,"SAPD - Mobile Data Computer","Gebe das MDC Passwort ein.","Okay","Abbrechen"); } return 1; }