Szerző Téma: Error , help  (Megtekintve 619 alkalommal)

Nem elérhető kexy96

  • 281
  • kexy96
    • Profil megtekintése
Error , help
« Dátum: 2012. december 29. - 10:12:32 »
0 Show voters
if(newstate == PLAYER_STATE_DRIVER)
{
   format(string, 128, \"Benzin:       %%%d\", Benzin[GetPlayerVehicleID(playerid)]);
   TextDrawSetString(Fuel[playerid], string),
      TextDrawShowForPlayer(playerid, Fuel[playerid]),
         TextDrawShowForPlayer(playerid, BlackBox),
            TextDrawTextSize(Moving[playerid], (354.0 - (Benzin[GetPlayerVehicleID(playerid)] / DIVBY)), 0.000000),
               TextDrawShowForPlayer(playerid, Moving[playerid]);
    if (Benzin[GetPlayerVehicleID(playerid)] < 1)
{
   Benzin[GetPlayerVehicleID(playerid)] = 1;
   format(string2, 128, \"Benzin:       %%%d\", Benzin[GetPlayerVehicleID(playerid)]);
   TextDrawSetString(Fuel[playerid], string2),
      TextDrawShowForPlayer(playerid, Fuel[playerid]),
         TextDrawTextSize(Moving[playerid], (354.0 - (Benzin[GetPlayerVehicleID(playerid)] / DIVBY)), 0.000000),
            TextDrawShowForPlayer(playerid, Moving[playerid]);
}
if(Benzin[GetPlayerVehicleID(playerid)]  < 1)
{
    Benzin[GetPlayerVehicleID(playerid)] = 0;
           GameTextForPlayer(playerid, \"~n~~n~~n~~n~~n~~n~~n~~w~Nincs elég benzin a jármûben.\", 4000, 3);
       RemovePlayerFromVehicle(playerid);
}
}
else if (newstate == PLAYER_STATE_ONFOOT)
{
    TextDrawHideForPlayer(playerid, Fuel[playerid]),
   TextDrawHideForPlayer(playerid, BlackBox),
             TextDrawHideForPlayer(playerid, Moving[playerid]);
    TogglePlayerControllable(playerid, true);
}
return 1;
}

 
 error 010: invalid function or declaration
 error 010: invalid function or declaration
 error 010: invalid function or declaration
 error 010: invalid function or declaration
 error 010: invalid function or declaration
Aki tud segítsen , köszönöm.

Error , help
« Válasz #1 Dátum: 2012. december 29. - 10:29:45 »
0 Show voters
TextDrawTextSize(Moving[playerid], (354.0 - (Benzin[GetPlayerVehicleID(playerid)] / DIVBY)), 0.000000),
Ez mi? Osztod  a Benzin[GetPlayerVehicleID(playerid)] a DIVBY-al?

Nem elérhető kexy96

  • 281
  • kexy96
    • Profil megtekintése
Error , help
« Válasz #2 Dátum: 2012. december 29. - 10:35:05 »
0 Show voters
Nem saját szkript , ígyvan megírva.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal