Guest User

Untitled

a guest
Jun 30th, 2022
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. if( sscanf( inputtext, "iiii", idauta, cena, boja1, boja2 ) ) return SPD( playerid, dialog_VCREATE, DSI, D_NASLOV, "Unesite id zeljenog vozila, cijenu, id boje1, id boje2!", D_ODABERI, D_NAZAD );
  2. if( idauta < 400 || idauta > 611 ) return SPD( playerid, dialog_VCREATE, DSI, D_NASLOV, "Unesite id zeljenog vozila, cijenu, id boje1, id boje2!", D_ODABERI, D_NAZAD );
  3. // if( VehPrice[ idauta-400 ][ 1 ] == 0 ) return ErrorMessage( playerid, "Vozilo sa unetim IDem se ne moze kreirati zbog nedefinisane cene." );
  4. // I OVDE HOCU DA UBACIM TU PROVERU DA NE MOZE VOZILO DA SE NAPRAVI DOK JE RENT VOZILO NA SERVERU
  5. if( boja1 < 0 || boja1 > 255 ) return ErrorMessage( playerid, "Prva boja ne moze biti manja od 0 ili veca od 255.");
  6. if( boja2 < 0 || boja2 > 255 ) return ErrorMessage( playerid, "Druga boja ne moze biti manja od 0 ili veca od 255.");
  7. if( cena < VehPrice[ idauta- 400 ][ 1 ]/2 ) return ErrorMessage( playerid, "Cena ovog auta ne moze ispod $%d.", VehPrice[ idauta- 400 ][ 1 ]/2 );
  8. for( new i = 1; i < MAX_CARS; i++ ) {
  9. new fileauta[ 40 ];
  10. format(fileauta, sizeof( fileauta ), V_FILE, i);
  11. if( !fexist( fileauta ) ) {
Advertisement
Add Comment
Please, Sign In to add comment