Szerző Téma: Mi baja a scriptnek?:S  (Megtekintve 674 alkalommal)

Mi baja a scriptnek?:S
« Dátum: 2013. Június 19. - 16:33:11 »
0 Show voters
#include <a_samp>
#include <zcmd>
#include <streamer>
#include <sscanf2>
#define Create3DTextLabel
 
 
public OnGameModeInit ( )
{
    new vehicle_id, Text3D:vehicle3Dtext;
    vehicle3Dtext = Create3DTextLabel(\"szöveg\", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1);
    vehicle_id = CreateVehicle(510, 0.0. 0.0, 15.0, 5, 0, 120);
}
        }
   }
   return 1;
}

 
ezeket írja :S
C:\\dolgok\\editions.pwn(16) : warning 213: tag mismatch
C:\\dolgok\\editions.pwn(17) : error 001: expected token: \",\", but found \".\"
C:\\dolgok\\editions.pwn(17) : error 029: invalid expression, assumed zero
C:\\dolgok\\editions.pwn(17) : warning 215: expression has no effect
C:\\dolgok\\editions.pwn(17) : warning 215: expression has no effect
C:\\dolgok\\editions.pwn(17) : warning 215: expression has no effect
C:\\dolgok\\editions.pwn(17) : warning 215: expression has no effect
C:\\dolgok\\editions.pwn(17) : warning 215: expression has no effect
C:\\dolgok\\editions.pwn(17) : error 001: expected token: \";\", but found \")\"
C:\\dolgok\\editions.pwn(17) : fatal error 107: too many error messages on one line

Mi baja a scriptnek?:S
« Válasz #1 Dátum: 2013. Június 19. - 16:58:54 »
0 Show voters
Minek defináltad a 3dtextet? o.O

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
Mi baja a scriptnek?:S
« Válasz #2 Dátum: 2013. Június 19. - 17:00:56 »
0 Show voters
        }
        }
   }

 
ezeket töröld..
szóval:
 
public OnGameModeInit ( )
{
    new vehicle_id, Text3D:vehicle3Dtext;
    vehicle3Dtext = Create3DTextLabel(\"szöveg\", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1);
    vehicle_id = CreateVehicle(510, 0.0. 0.0, 15.0, 5, 0, 120);
   return 1;
}

Mi baja a scriptnek?:S
« Válasz #3 Dátum: 2013. Június 19. - 17:04:10 »
0 Show voters
ahogy utolsó leírta,úgy is erroros
C:\\dolgok\\editions.pwn(16) : warning 213: tag mismatch
C:\\dolgok\\editions.pwn(17) : error 001: expected token: \",\", but found \".\"
C:\\dolgok\\editions.pwn(17) : error 029: invalid expression, assumed zero
C:\\dolgok\\editions.pwn(17) : warning 215: expression has no effect
C:\\dolgok\\editions.pwn(17) : warning 215: expression has no effect
C:\\dolgok\\editions.pwn(17) : warning 215: expression has no effect
C:\\dolgok\\editions.pwn(17) : warning 215: expression has no effect
C:\\dolgok\\editions.pwn(17) : warning 215: expression has no effect
C:\\dolgok\\editions.pwn(17) : error 001: expected token: \";\", but found \")\"
C:\\dolgok\\editions.pwn(17) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
4 Errors.

Mi baja a scriptnek?:S
« Válasz #4 Dátum: 2013. Június 19. - 17:05:03 »
0 Show voters
#include <a_samp>
#include <zcmd>
#include <streamer>
#include <sscanf2>
public OnGameModeInit ( )
{
    new Text3D:vehicle3Dtext[MAX_VEHICLES],vehicle_id; //definiálás
    vehicle_id = CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 60); //jármû létrehozása
    vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( \"Szöveg\", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 ); //3dtext létrehozása
    Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0); // 3dtext csatolása a jármûhöz
    return 1;
}

 
Amúgy csak annyi a probléma hogy ebbe a sorba a 2. szám után nem , van hanem .
 
vehicle_id = CreateVehicle(510, 0.0. 0.0, 15.0, 5, 0, 120);

 
De ha jól láttam akkor csatolni akartál hozzá szöveget így megcsináltam.
« Utoljára szerkesztve: 2013. Június 19. - 17:08:02 írta halaloszto100 »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal