[Pomoc] SpeedoMeter

Započeo [The:Siky], April 02, 2012, 22:43:58 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moju
Detaljan opis problema: Nemogu nikako da napravim speedo meter
Dio skripte:new String[256];
//Speedo meter

public CheckStatus()
{
new foreach;
foreach (Player, i)
{
if(IsPlayerInAnyVehicle(i))
{
if(TextShow[i] == false)
{
    TextDrawShowForPlayer(i, Text:Black0);
    TextDrawShowForPlayer(i, Text:Black1);
    TextDrawShowForPlayer(i, Text:Black2);
    TextDrawShowForPlayer(i, Text:Black3);
    TextDrawShowForPlayer(i, Text:LightBlack);
    TextShow[i] = true;
}
        new Float:X, Float:Y, Float:Z, Float:Speed;
        new vehicle = GetPlayerVehicleID(i);
                GetVehicleVelocity(GetPlayerVehicleID(i), X, Y, Z);
                Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(X, 2), floatpower(Y, 2)),  floatpower(Z, 2))), 100.0);
format(String,sizeof(String),"~b~ [Tabla]~n~~r~Gorivo: ~w~%i~n~~r~km/h: ~w~%i", Gas[vehicle], floatround(Speed*2, floatround_floor));
if(VHSCreated[i] == true)
{
TextDrawDestroy(VHS[i]);
}
VHS[i] = TextDrawCreate(541.000000,137.000000,String);
TextDrawAlignment(VHS[i],0);
TextDrawBackgroundColor(VHS[i],0x000000ff);
TextDrawFont(VHS[i],1);
TextDrawLetterSize(VHS[i],0.259999,1.000000);
TextDrawColor(VHS[i],0xffffffff);
TextDrawSetOutline(VHS[i],1);
TextDrawSetProportional(VHS[i],1);
TextDrawSetShadow(VHS[i],1);
            TextDrawShowForPlayer(i, VHS[i]);
            VHSCreated[i] = true;

}
else
{
    if(TextShow[i] == true)
    {
TextDrawHideForPlayer(i, Text:Black0);
TextDrawHideForPlayer(i, Text:Black1);
TextDrawHideForPlayer(i, Text:Black2);
TextDrawHideForPlayer(i, Text:Black3);
TextDrawHideForPlayer(i, Text:LightBlack);
TextDrawHideForPlayer(i, Text:VHS[i]);
    TextShow[i] = false;
}
}
}
}


A ovo mi izbacuje Error :
C:\Documents and Settings\papi.PAPI-945AC67CCA\Desktop\Nas server\RaZor RP\RaZor RP\gamemodes\rprz.pwn(2991) : error 012: invalid function call, not a valid address
C:\Documents and Settings\papi.PAPI-945AC67CCA\Desktop\Nas server\RaZor RP\RaZor RP\gamemodes\rprz.pwn(2991) : error 017: undefined symbol "Player"
C:\Documents and Settings\papi.PAPI-945AC67CCA\Desktop\Nas server\RaZor RP\RaZor RP\gamemodes\rprz.pwn(2991) : error 029: invalid expression, assumed zero
C:\Documents and Settings\papi.PAPI-945AC67CCA\Desktop\Nas server\RaZor RP\RaZor RP\gamemodes\rprz.pwn(2991) : fatal error 107: too many error messages on one line

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


4 Errors.

Neke slike/video za lakse dobivanje pomoci(neobavezno): /

Skini neki speddo(da lepo radi) ,i pogledaj kako je on podesen , onda pogledaj gde si ti gresio !!
Izvinjavam se na svim glupostima i ako sam nekome napisao nesto lose, neko drugi je koristio moj profil!
__________________________________________
https://bk.gta.world - GTA World Balkan - RAGEMP

Citat: ''KopriVa' poslato April 02, 2012, 22:46:10 POSLE PODNE
Skini neki speddo(da lepo radi) ,i pogledaj kako je on podesen , onda pogledaj gde si ti gresio !!
vec sam skinuo 3 puta neki speedo a svi imaju errori ovaj ima najmanje.. ostale speedometar ima 14,15 errors


Snich

Postavi u kod liniju 2991 tj. liniju na koju ti baca error ...

Mr.Gagi

Citat: [BD:RP]Mr.Gagi poslato April 03, 2012, 08:01:23 PRE PODNE
Foreach ne mozes tako definisati (mislim na new foreach;)!
To obrisi i skini include foreach: http://forum.sa-mp.com/showthread.php?t=92679 i dodaj #include <foreach>
Procitaj citat moj.