[POMOc]Za speedometar

Započeo ChampaWasTaken, Mart 06, 2013, 09:25:29 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: od 0
Detaljan opis problema: pa vako ubacivao sam speedometar u svoju skriptu i izbace mi errori ovi:
C:\Users\Rake\Desktop\Prokuplje RolePlay v1.2\gamemodes\PKRP.pwn(4697) : error 028: invalid subscript (not an array or too many subscripts): "Brz0"
C:\Users\Rake\Desktop\Prokuplje RolePlay v1.2\gamemodes\PKRP.pwn(4697) : warning 215: expression has no effect
C:\Users\Rake\Desktop\Prokuplje RolePlay v1.2\gamemodes\PKRP.pwn(4697) : error 001: expected token: ";", but found "]"
C:\Users\Rake\Desktop\Prokuplje RolePlay v1.2\gamemodes\PKRP.pwn(4697) : error 029: invalid expression, assumed zero
C:\Users\Rake\Desktop\Prokuplje RolePlay v1.2\gamemodes\PKRP.pwn(4697) : fatal error 107: too many error messages on one line

Dio skripte:    public UpdateSpeedo()
    {
        for(new i = 0;i<MAX_PLAYERS;i++)
        {
            if(IsPlayerConnected(i))
            {
                if(GetPlayerState(i)==2)
                {

                    new speed[128];
                    new Float:xfloat,Float:yfloat,Float:zfloat;
                    new Float:distance,value;
                    GetPlayerPos(i, xfloat, yfloat, zfloat);
                    distance = floatsqroot(floatpower(floatabs(floatsub(xfloat,TachoX[i])),2)+floatpower(floatabs(floatsub(yfloat,TachoY[i])),2)+floatpower(floatabs(floatsub(zfloat,TachoZ[i])),2));
                    value = floatround(distance * 11000);
                    TachoX[i] = xfloat;
                    TachoY[i] = yfloat;
                    TachoZ[i] = zfloat;
                    format(speed,sizeof(speed),"%d",floatround(value/3200));
                    TextDrawSetString(Brz0 [i],speed);
                }//to dodje na ovoj zagradi
            }
        }
        return 1;
    }

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Mislim dakle Boze
Na Zari sve i svasta

dodaj jos jednu zagradu prije returna
Pravim RP,DM,TDM,STUNT, Freeroam modove od 0 za pare, nacini placanja : Paypal ili banka

sad mi ovo izbaci brt
C:\Users\Rake\Desktop\Prokuplje RolePlay v1.2\gamemodes\PKRP.pwn(4699) : error 028: invalid subscript (not an array or too many subscripts): "Brz0"
C:\Users\Rake\Desktop\Prokuplje RolePlay v1.2\gamemodes\PKRP.pwn(4699) : warning 215: expression has no effect
C:\Users\Rake\Desktop\Prokuplje RolePlay v1.2\gamemodes\PKRP.pwn(4699) : error 001: expected token: ";", but found "]"
C:\Users\Rake\Desktop\Prokuplje RolePlay v1.2\gamemodes\PKRP.pwn(4699) : error 029: invalid expression, assumed zero
C:\Users\Rake\Desktop\Prokuplje RolePlay v1.2\gamemodes\PKRP.pwn(4699) : fatal error 107: too many error messages on one line
Mislim dakle Boze
Na Zari sve i svasta

public UpdateSpeedo(playerid)
{
for(new i = 0;i<MAX_PLAYERS;i++)
{
            if(GetPlayerState(i)==2)
        {
         new Brzina[20];
    new Float:xfloat,Float:yfloat,Float:zfloat;
      new Float:distance,value;
      GetPlayerPos(i, xfloat, yfloat, zfloat);
        distance = floatsqroot(floatpower(floatabs(floatsub(xfloat,TachoX[i])),2)+floatpower(floatabs(floatsub(yfloat,TachoY[i])),2)+floatpower(floatabs(floatsub(zfloat,TachoZ[i])),2));
          value = floatround(distance * 11000);
          TachoX[i] = xfloat;
            TachoY[i] = yfloat;
                 TachoZ[i] = zfloat;
            format(Brzina, sizeof(Brzina), "%d", floatround(value/3200));
TextDrawSetString(Brz0[playerid], Brzina);
        }
}
return 1;
}


Probaj ovako, ako ti opet baca isti error, daj mi TextDraw "Brz0" da vidim.
Poslednja Izmena: Mart 06, 2013, 12:42:38 POSLE PODNE od joXy_#

Nis brte hvala uspio sam napraviti
Mislim dakle Boze
Na Zari sve i svasta