Jump to content

[REZOLVAT] Ajutor va rog


ionchyAdv
 Share

Recommended Posts

Am luat si eu un Speedometer de pe net, si de 1 ora tot incerc sa-l fac ma poate ajuta cnv ? Aici este speedo: https://pastebin.com/E5MB1eSB

Pai in primul rand am pus : new PlayerText:Speedo[MAX_PLAYERS][5]; , daca vreti sa spuneti ca am ratat, okkk am facut tot in systems inc cel putin asa arata

unknown.png

Ok , si imi da erorile astea.

C:\Users\Ionut Rus\Desktop\burned.ro\gamemodes\wa-rpg.pwn(31795) : error 017: undefined symbol "playerid"
C:\Users\Ionut Rus\Desktop\burned.ro\gamemodes\wa-rpg.pwn(31796) : error 017: undefined symbol "playerid"
C:\Users\Ionut Rus\Desktop\burned.ro\gamemodes\wa-rpg.pwn(31797) : error 017: undefined symbol "playerid"
C:\Users\Ionut Rus\Desktop\burned.ro\gamemodes\wa-rpg.pwn(31798) : error 017: undefined symbol "playerid"
C:\Users\Ionut Rus\Desktop\burned.ro\gamemodes\wa-rpg.pwn(31799) : error 017: undefined symbol "playerid"
C:\Users\Ionut Rus\Desktop\burned.ro\gamemodes\wa-rpg.pwn(31800) : error 017: undefined symbol "playerid"
C:\Users\Ionut Rus\Desktop\burned.ro\gamemodes\wa-rpg.pwn(31805) : error 017: undefined symbol "playerid"
C:\Users\Ionut Rus\Desktop\burned.ro\gamemodes\wa-rpg.pwn(31806) : error 017: undefined symbol "playerid"
C:\Users\Ionut Rus\Desktop\burned.ro\gamemodes\wa-rpg.pwn(31807) : error 017: undefined symbol "playerid"
C:\Users\Ionut Rus\Desktop\burned.ro\gamemodes\wa-rpg.pwn(31808) : error 017: undefined symbol "playerid"
C:\Users\Ionut Rus\Desktop\burned.ro\gamemodes\wa-rpg.pwn(31809) : error 017: undefined symbol "playerid"
C:\Users\Ionut Rus\Desktop\burned.ro\gamemodes\wa-rpg.pwn(31810) : error 017: undefined symbol "playerid"
C:\Users\Ionut Rus\Desktop\burned.ro\gamemodes\wa-rpg.pwn(31810) : error 029: invalid expression, assumed zero
C:\Users\Ionut Rus\Desktop\burned.ro\gamemodes\wa-rpg.pwn(31810) : error 029: invalid expression, assumed zero
C:\Users\Ionut Rus\Desktop\burned.ro\gamemodes\wa-rpg.pwn(31810) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


15 Errors.
[Finished in 67.9s]

Am sa va arat Gm acum adica unde imi da erorile: 

function Checkvehinfo(i) {
	if(GetPlayerState(i) == PLAYER_STATE_DRIVER && InDealer[i] == 0) {
		new
			status[180], str[256], benzina[64],
			engine,lights,alarm,doors,bonnet,boot,objective,
			vehicle = GetPlayerVehicleID(i), spe = Carspeed(i), carid = FindSpawnID(vehicle);

		GetVehicleParamsEx(vehicle,engine,lights,alarm,doors,bonnet,boot,objective);

		if(doors == 1) { status = "Doors: ~r~Locked~w~~h~"; }
		else if(doors == 0) { status = "Doors: ~g~Unlocked~w~~h~"; }
		else status = "Doors: ~g~Unlocked~w~~h~";

		if(Gas[vehicle] > 20) format(benzina, sizeof(benzina), "%d", Gas[vehicle]);
		else format(benzina, sizeof(benzina), "~r~%d", Gas[vehicle]);

		if(CarInfo[carid][cID] != -2 && carid != 0 && !IsAPlane(vehicle)) {
			if(!IsABike(vehicle) && !IsAPlane(vehicle)) format(str, sizeof(str), "Speed: ~r~%d~w~~h~ km/h~w~~h~~n~Odometer: %.2f~n~Radio: %s~n~%s~n~Fuel: %s%s", spe, CarInfo[carid][KM], GetVehicleRadio(vehicle), status, benzina, "%");
			else format(str, sizeof(str), "Speed: ~r~%d~w~~h~ km/h~n~Odometer: %.2f~n~Radio: %s~n~%s", spe, CarInfo[carid][KM], GetVehicleRadio(vehicle), status);
			PlayerTextDrawSetString(i, Speedo[playerid][4], str);
			PlayerTextDrawSetString(i, Speedo[playerid][3], str);
			PlayerTextDrawSetString(i, Speedo[playerid][2], str);
			PlayerTextDrawShow(i, Speedo[playerid][4]);
			PlayerTextDrawShow(i, Speedo[playerid][3]);
			PlayerTextDrawShow(i, Speedo[playerid][2]);
		}
		else {
			if(!IsABike(vehicle) && !IsAPlane(vehicle)) format(str, sizeof(str), "Speed: ~r~%d~w~~h~ km/h~w~~h~~n~Radio: %s~n~%s~n~Fuel: %s%s", spe, GetVehicleRadio(vehicle), status, benzina, "%");
			else format(str, sizeof(str), "Speed: ~r~%d~w~~h~ km/h~n~Radio: %s~n~%s", spe, GetVehicleRadio(vehicle), status);
			PlayerTextDrawSetString(i, Speedo[playerid][4], str);
			PlayerTextDrawSetString(i, Speedo[playerid][3], str);
			PlayerTextDrawSetString(i, Speedo[playerid][2], str);
			PlayerTextDrawShow(i, Speedo[playerid][4]);
			PlayerTextDrawShow(i, Speedo[playerid][3]);
			PlayerTextDrawShow(i, Speedo[playerid][2]); 
		}
	}
	return 1;
}

Si poza cu liniile ca sa va fie mai usor: unknown.png

Sper ca ma puteti ajuta

 

Edited by Ionchy4K
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...