Jump to content
  • 0

Problema gamemode


tommY_DaNGer

Question

Salut sunt mai nou in script si am o problema cu un GM.

Imi da 4 erori: 1)error 017: undefined symbol "foreach"

                      2)error 029: invalid expression, assumed zero

                      3)error 017: undefined symbol "Player"

                      4)fatal error 107: too many error messages on one line

Linia care da aceste erori este:

[pawn]foreach(new i: Player)[/pawn]

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Pentru inceput, ce face variabila "Player"? nu cumva ai vrut sa scrii "playerid"?

eroare cu undefined symbol o primesti atunci cand nu ai creat respectiva variabila.De exemplu

 

format(test_var,sizeof(test_var),"This is a exemple");
printf ("Test this var %s", test_var);

 
Aici o sa primesti eroare cu undefined symbol , deoarece variabila test_var nu este definita. Codul correct trebuie sa fie acesta.
 
new test_var[20]; 
format(test_var,sizeof(test_var),"This is a exemple");
printf("Test this var %s, test_var);

Sper ca ai inteles ceva :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.