08.06.2015, 18:16
Код:
CMD:lenme(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 3, 998.8036,-2166.8545,13.0938)) { if(JobStep[playerid] == 0) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{FFFFFF}Taietor de lemne", "{FFFFFF}Timp: {FF8000}7 Minute\n{FFFFFF}Castig: {FF8000}10.000$","Iesire", ""); skinoriginal[playerid] = GetPlayerSkin(playerid); SetPlayerSkin(playerid, 16); JobStep[playerid] = 1; SendClientMessage(playerid, 0xFFFF00C8, "Urca-te intr-o masina."); } else { SendClientMessage(playerid, 0xFF0000C8, "Trebuie sa termini sarcina actuala!"); return 1; } } else { SendClientMessage(playerid, 0xFF0000C8, "Nu esti langa vestiar!"); return 1; } return 1; }
to CMD:commandname(playerid, params[]), fix the indentation and place it outside of a callback