Paljenje/Gasenje auta

Započeo Tony#, Oktobar 09, 2018, 19:39:42 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Problem(error/warning): Kada palim i gasim auto ne izbacuje mi u chatu nista tj izbacuje kao prazan tekst doslovno nista ne pise,ali auto se pali i gasi normalno
Dio skripte: [ pawn ]
Citatif(newkeys & KEY_SUBMISSION)
   {
      new string[20];
      if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
      {
         new engine, lights, alarm, doors, bonnet, boot, objective, strrmu[100];
         GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
         if(VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid)))) return 1;
         if(engine == 0 || engine == -1)
         {
            new Float:HP;
            GetVehicleHealth(GetPlayerVehicleID(playerid), HP);
            if(HP < 400.0) return SCM(playerid,-1, ""SIVA"Vozilo vam je previse osteceno, pozovite mehanicara!");
            if(Fuel[GetPlayerVehicleID(playerid)] <= 0) return SCM(playerid,-1, ""SIVA"Nemate goriva u vozilu pa ne mozete upaliti motor!");
                SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1, lights, alarm, doors, bonnet, boot, objective);
            format(strrmu,sizeof(strrmu), "* %s pali motor na vozilu.", GetName(playerid));
            ProxDetector(20.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
               format(strrmu, sizeof(strrmu), "ENGINE: ~g~ON");
               PlayerTextDrawSetString(playerid, Brzinomer_Gui[playerid][4], strrmu);
               PlayerTextDrawShow(playerid, Brzinomer_Gui[playerid][4]);
         }
         else if(engine == 1)
         {
            SetVehicleParamsEx(GetPlayerVehicleID(playerid), 0, 0, alarm, doors, bonnet, boot, objective);
            format(strrmu,sizeof(strrmu), "* %s gasi motor na vozilu.", GetName(playerid));
            ProxDetector(20.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
            format(strrmu, sizeof(strrmu), "ENGINE: ~r~OFF");
               PlayerTextDrawSetString(playerid, Brzinomer_Gui[playerid][4], strrmu);
               PlayerTextDrawShow(playerid, Brzinomer_Gui[playerid][4]);
         }
      }
   }
[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/a/MBAFG6j vidite kao u chatu je prazan tekst,ne znam kako da objasnim
Poslednja Izmena: Oktobar 10, 2018, 09:48:23 PRE PODNE od Bašovski

L3o

*

Izvoli, usput sredi malo kod jer gori ko Å¡ume u ljetu.

[pawn]if(newkeys & KEY_SUBMISSION)
   {
      new string[20];
      if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
      {
         new engine, lights, alarm, doors, bonnet, boot, objective, strrmu[100];
         GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
         if(VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid)))) return 1;
         if(engine == 0 || engine == -1)
         {
            new Float:HP;
            GetVehicleHealth(GetPlayerVehicleID(playerid), HP);
            if(HP < 400.0) return SCM(playerid,-1, ""SIVA"Vozilo vam je previse osteceno, pozovite mehanicara!");
            if(Fuel[GetPlayerVehicleID(playerid)] <= 0) return SCM(playerid,-1, ""SIVA"Nemate goriva u vozilu pa ne mozete upaliti motor!");
                SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1, lights, alarm, doors, bonnet, boot, objective);
            format(strrmu,sizeof(strrmu), "* %s pali motor na vozilu.", GetName(playerid));
            ProxDetector(20.0, playerid, strrmu, PROX,PROX,PROX,PROX,PROX);
               format(strrmu, sizeof(strrmu), "ENGINE: ~g~ON");
               GameTextForPlayer(playerid,strrmu,2500,4);
               PlayerTextDrawSetString(playerid, Brzinomer_Gui[playerid][4], strrmu);
               PlayerTextDrawShow(playerid, Brzinomer_Gui[playerid][4]);
         }
         else if(engine == 1)
         {
            SetVehicleParamsEx(GetPlayerVehicleID(playerid), 0, 0, alarm, doors, bonnet, boot, objective);
            format(strrmu,sizeof(strrmu), "* %s gasi motor na vozilu.", GetName(playerid));
            ProxDetector(20.0, playerid, strrmu, PROX,PROX,PROX,PROX,PROX);
            format(strrmu, sizeof(strrmu), "ENGINE: ~r~OFF");
              GameTextForPlayer(playerid,strrmu,2500,4);
               PlayerTextDrawSetString(playerid, Brzinomer_Gui[playerid][4], strrmu);
               PlayerTextDrawShow(playerid, Brzinomer_Gui[playerid][4]);
         }
      }
   }[/pawn]
retired