04.05.2014, 15:48
Hi! Can you help me with a code?
I can compile with no errors, but it's not working.
Код:
if(strcmp(x_nr, "plate", true) == 0) { if(PlayerInfo[playerid][pPcarkey] == 999) { SendClientMessage(playerid, COLOR_GREY," You don't have a vehicle to respray."); return 1; } if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey] || PlayerInfo[playerid][pPcarkey2]) { new Float:x,Float:y,Float:z,Float:ang; GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z); GetVehicleZAngle(GetPlayerVehicleID(playerid),ang); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED, "Nu esti intr-un vehicul!"); new str[1028]; format(str, 1024, "{00CC66}Scrie in casuta numarul de inmatriculare dorit!\n\n"); format(str, 1024, "{AA3333}ATENTIE!\n"); format(str, 1024, "{00CC66}Fara numere gen {33AA33}Maria, Cezar, Vlad, etc\n\n"); ShowPlayerDialog(playerid,DIALOG_PLATE,DIALOG_STYLE_INPUT,"{EE7777}Plate Car", str,"Yes","Cancel"); return 1; } else { SendClientMessage(playerid, COLOR_GREY, " Nu esti in masina ta personala!"); return 1; } for(new h = carsonserver; h < sizeof(CarInfo); h++) { format(TextCar, sizeof(TextCar), "• %s •", CarInfo[h][cLicense]); TextUpCar[h] = Create3DTextLabel(TextCar, 0xAA3333AA , 0.0, 0.0, 0.0, 25, 0, 1); Attach3DTextLabelToVehicle(TextUpCar[h], h, 0.0, 0.0, 0.1); } }