Jump to content
  • 0

Erori compilare - VA ROG AJUTATI-MA!


__MeGaTrOnN__

Question

Salutare!

Am vrut sa dau compile in pawno la un script si imi da erorile astea:

\gamemodes\RO.pwn(1248) : error 017: undefined symbol "GREEN"
\gamemodes\RO.pwn(1263) : error 017: undefined symbol "GREEN"
\gamemodes\RO.pwn(1356) : error 029: invalid expression, assumed zero
\gamemodes\RO.pwn(1356) : warning 215: expression has no effect
\gamemodes\RO.pwn(1356) : error 001: expected token: ";", but found "]"
\gamemodes\RO.pwn(1356) : error 029: invalid expression, assumed zero
\gamemodes\RO.pwn(1356) : fatal error 107: too many error messages on one line

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


6 Errors.

 

L-am lasat necompilat, si cand deschid samp-server.exe se deschide si se inchide urgent.

Va rog ajutati-ma! 
 

Edited by __MeGaTrOnN__
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

 

Citat

\gamemodes\RO.pwn(1248) : error 017: undefined symbol "GREEN"
\gamemodes\RO.pwn(1263) : error 017: undefined symbol "GREEN"

trebuie sa pui sus de tot #define GREEN 0x33AA33AA

Citat

\gamemodes\RO.pwn(1356) : error 029: invalid expression, assumed zero
\gamemodes\RO.pwn(1356) : warning 215: expression has no effect
\gamemodes\RO.pwn(1356) : error 001: expected token: ";", but found "]"
\gamemodes\RO.pwn(1356) : error 029: invalid expression, assumed zero
\gamemodes\RO.pwn(1356) : fatal error 107: too many error messages on one line

Corect cred ca ar fi: 

format(string, sizeof(string), "Acum tu tractezi un %s", VehicleName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);

si sus sa declari: 

new VehicleName[][] = {

si sa enumeri numele lor, sau daca ai deja declarat schimba numele cum ai in gm

 

 

 

Link to comment
Share on other sites

  • 0

format(string, sizeof(string), "Acum tu tractezi un %d", GetVehicleModel(GetPlayerVehicleID(playerid))-400);

%d e pentru numere de tip integer(intregi), nu poti pune %s care e pentru siruri de caractere la un numar intreg. Apropo, GetVehicleModel iti returneaza ID-ul modelului masinii, nu numele.

 

http://forum.sa-mp.com/showthread.php?t=305314

Cred ca asta vrei sa faci tu(Reply-ul lui Tee).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.