Рекомендованные сообщения



7 posts in this topic

Спойлер

C:\Users\777\Desktop\Admin_Nikita\JRP\gamemodes\RRP.pwn(1) : error 010: invalid function or declaration
C:\Users\777\Desktop\Admin_Nikita\JRP\gamemodes\RRP.pwn(3884) : error 017: undefined symbol "info"
C:\Users\777\Desktop\Admin_Nikita\JRP\gamemodes\RRP.pwn(3884) : warning 215: expression has no effect
C:\Users\777\Desktop\Admin_Nikita\JRP\gamemodes\RRP.pwn(3884) : error 001: expected token: ";", but found "]"
C:\Users\777\Desktop\Admin_Nikita\JRP\gamemodes\RRP.pwn(3884) : error 029: invalid expression, assumed zero
C:\Users\777\Desktop\Admin_Nikita\JRP\gamemodes\RRP.pwn(3884) : fatal error 107: too many error messages on one line

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


5 Errors.

 

Спойлер

	format(info[5],20,"%.1f KM",PI[playerid][cProbeg]);//Îáùèé ïðîáåã êàðà
	PlayerTextDrawSetString(playerid,SpeedPlayerText[playerid][7],info[5]);

 

 

Share this post


Link to post
Share on other sites

@Nekit_Krut18 перед этими строчками скиньте код. 

Share this post


Link to post
Share on other sites

@DEST 

Спойлер

forward UpdateSpeedometr(playerid);
public UpdateSpeedometr(playerid)
{
	if(PI[playerid][pAFK] >= 3 && GetPlayerState(playerid) != 2) return 1;
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsAPlane(vehicleid)==1 || IsABoat(vehicleid)==1 || IsAMoped(vehicleid)==1 || IsAVel(vehicleid)==1) return 1;
    new str[100];
    new speed = SpeedVehicle(playerid)/2;
	format(str, sizeof(str),"%d",speed);
	PlayerTextDrawSetString(playerid,SpeedPlayerText[playerid][3],str);
	format(str, sizeof(str),"%s%d",(Fuel[vehicleid]<=10)?("~r~~h~"):("~w~"),Fuel[vehicleid]);
	PlayerTextDrawSetString(playerid,SpeedPlayerText[playerid][9],str);

	new Float:vehhealth;
	GetVehicleHealth(vehicleid, vehhealth);
	format(str, sizeof(str),"%.0f",vehhealth);
	PlayerTextDrawSetString(playerid,SpeedPlayerText[playerid][5],str);
	
	switch(SpeedVehicle(playerid)/2)
	{
	    case 0: format(str,sizeof(str),"~r~I");
	    case 1..9: format(str,sizeof(str),"~g~I~r~I~g~I");
	    case 10..19: format(str,sizeof(str),"~g~II~r~I~g~II");
	    case 20..29: format(str,sizeof(str),"~g~III~r~I~g~III");
	    case 30..39: format(str,sizeof(str),"~g~IIII~r~I~g~IIII");
	    case 40..49: format(str,sizeof(str),"~g~IIIII~r~I~g~IIIII");
	    case 50..59: format(str,sizeof(str),"~g~IIIIII~r~I~g~IIIIII");
	    case 60..69: format(str,sizeof(str),"~g~IIIIIII~r~I~g~IIIIIII");
	    case 70..79: format(str,sizeof(str),"~g~IIIIIIII~r~I~g~IIIIIIII");
	    case 80..99: format(str,sizeof(str),"~g~IIIIIIIII~r~I~g~IIIIIIIII");
	    case 100..114: format(str,sizeof(str),"~g~IIIIIIIIII~r~I~g~IIIIIIIIII");
	    case 115..150: format(str,sizeof(str),"~g~IIIIIIIIIII~r~I~g~IIIIIIIIIII");
	    default: format(str,sizeof(str),"~g~IIIIIIIIIII~r~I~g~IIIIIIIIIII");
	}
	PlayerTextDrawSetString(playerid,SpeedPlayerText[playerid][2],str);

 

 

Share this post


Link to post
Share on other sites

Вот так попробуйте: 

	format(str,20,"%.1f KM",PI[playerid][cProbeg]);//Îáùèé ïðîáåã êàðà
	PlayerTextDrawSetString(playerid,SpeedPlayerText[playerid][7],str);

 

Share this post


Link to post
Share on other sites

@DEST 

Спойлер

C:\Users\777\Desktop\Admin_Nikita\JRP\gamemodes\RRP.pwn(1) : error 010: invalid function or declaration

 

Share this post


Link to post
Share on other sites

@Nekit_Krut18 в первой строчке мода какую-то ересь написал, проверяй

Share this post


Link to post
Share on other sites

@Nekit_Krut18 я вот этим кодом хочу вывести пробег на текс драв

 

@DEST Все да там стояла \ скомпилировался

@Nekit_Krut18 Mr.DEST А почему у меня на TextDraw Нету картинок (машинки) ?

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Фейкез
      By Фейкез
      Выдавая машину через /veh у нее оказывается 0 топлива, мод аризоны, понятия не имею как пофиксить, помогайте.