Szerző Téma: Kocsi rendszám, felülírás  (Megtekintve 1163 alkalommal)

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
Kocsi rendszám, felülírás
« Dátum: 2012. Január 15. - 16:06:00 »
0 Show voters
Sziasztok.
Ismét segítség kellene.
Adott egy kód:
 
if(PlayerInfo[playerid][kulcs] != 0)
            {
         if(PlayerInfo[playerid][penz] >= 3000)
         {
             new rnd = random(999);
             format(string,128,\"LLR-%d\",rnd);
             new asdd = PlayerInfo[playerid][kulcs];
             rendszam[asdd] = string;
             SCM(playerid, -1, \"Az autódon mostantól van rendszám.\");
         } else { SCM(playerid, -1, \"Nincs 3000$-od.\"); }
                } else { SCM(playerid, -1, \"Nincs kocsid.\"); }

 
Hiba:error 006: must be assigned to an array
Hibás sor:
 rendszam[asdd] = string;

Kocsi rendszám, felülírás
« Válasz #1 Dátum: 2012. Január 15. - 16:42:12 »
+1 Show voters
Hy!Én nekem is volt ilyen hibám, de így oldottam meg: [pawn]format(rendszam[asdd],sizeof(rendszam[asdd]),\"%s\",string);[/pawn]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal