[pomoc] texdrawporuke

Započeo sedin007, Januar 08, 2012, 15:30:41 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: San Andreas RPG/DM
Detaljan opis problema: Ovako imam problem u ovim texdrawovima znaci rade kao fs a u gm imam speedo koji mi je na istom mjestu kako i poruke e sve se naizmjencno mjenjaju (10 sec speedo ,10 sec poruke) e ako bi neko mogo da mi pomogne kako da maknem ovaj speedo !!
Dio skripte:public OnPlayerUpdate(playerid)
{
    new vehicleid,Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,speed_string[256],final_speed_int;
vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid != 0)
{
GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*0.4166672;
final_speed_int = floatround(final_speed,floatround_round);
format(speed_string,256,"~r~Brzina:~w~ %i km/h",final_speed_int);
TextDrawSetString(SPEEDOS[playerid], speed_string);
}
else
{
TextDrawSetString(SPEEDOS[playerid], " ");
}
    if(IsPlayerNPC(playerid)) return 1;
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid])
{
new string3[32];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "%s.ini", playername3);
new File: hFile = fopen(string3, io_write);
if (hFile)
{

Neke slike/video za lakse dobivanje pomoci(neobavezno): http://zaslike.com/files/3u9slvt6fs1omaembq6.jpg   http://zaslike.com/files/n6keu3ih7lkc2tj643iz.jpg



pa delete sve vezano za taj speedometer...
    new vehicleid,Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,speed_string[256],final_speed_int;
vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid != 0)
{
GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*0.4166672;
final_speed_int = floatround(final_speed,floatround_round);
format(speed_string,256,"~r~Brzina:~w~ %i km/h",final_speed_int);
TextDrawSetString(SPEEDOS[playerid], speed_string);
}
else
{
TextDrawSetString(SPEEDOS[playerid], " ");
}

i onda jos trazis SPEEDOS i delete taj textdraw...

Neznam sta je problem obrisem ovaj dio sto sam postao i obrisem dio new Text:SPEEDOS[MAX_PLAYERS]; i izbaci mi 17 errora .?



Citat: sedin007 poslato Januar 08, 2012, 16:02:07 POSLE PODNE
Neznam sta je problem obrisem ovaj dio sto sam postao i obrisem dio new Text:SPEEDOS[MAX_PLAYERS]; i izbaci mi 17 errora .?
imas jos za obrisati textdraw taj...
Trazi Speedos i samo delete...
Moras delete sve vezano za taj textdraw i brzinomjer.