Jump to content
  • 0

Problema givemoneyall


Question

Posted

Daca nu este asa foreach : "foreach" ci este asa : foreach imi dau urm erori:

(49462) : warning 219: local variable "PlayerName" shadows a variable at a preceding level

(49464) : error 017: undefined symbol "EsteManager"

(49469) : error 017: undefined symbol "SendUsage"

(49480) : error 017: undefined symbol "GivePlayerCash"

(49481) : error 017: undefined symbol "PlayerData"

(49481) : warning 215: expression has no effect

(49481) : error 001: expected token: ";", but found "]"

(49481) : error 029: invalid expression, assumed zero

(49481) : fatal error 107: too many error messages on one line

Linia 49462 ->new PlayerName[MAX_PLAYER_NAME];

Linia 49464 ->if(EsteManager(playerid))

Linia 49469 ->SendUsage(playerid,"{1fab48}» Foloseste: {FFFFFF}/givemoneyall [amount]");

Linia 49480 ->GivePlayerCash(i, moneys);

Linia 49481 ->format(string, sizeof(string), "{FFFFFF}[{1fab48}R-GM{FFFFFF}]Administratorul {1fab48}%s{FFFFFF} a dat cate {1fab48}${FFFFFF}%d tuturor playerilor online.", PlayerData[playerid][pNume], moneys);

Iar cand este foreach : "foreach" urm erori :

(3750) : error 001: expected token: "-string end-", but found "-identifier-"

(3750) : error 029: invalid expression, assumed zero

(3750) : error 017: undefined symbol "Player"

(3750) : fatal error 107: too many error messages on one line

Linia 3750 ->"foreach" (Player, playerid)

4 answers to this question

Recommended Posts

Posted

Dane comanda te rog ca nu avem de unde sa stim liniile,in cazul acesta comanda.

 

 

Posted

Exact .. dane comanda :) Trebuie mai intai s-o vedem

Prietene,te rog mult nu copia pe altii,daca sti bine spune si tu ceva daca nu nu copia te rog.

 

 

Posted

1. Sterge linia cu PlayerName.

2. Copiaza variabila EsteManger din gmu` de unde ai copiat-o(rgaming sau AF).

3. Idem ca cea de la 2, doar ca o sa copiezi SendUsage.

4. Incearca GivePlayerMoney.

5. Inlocuieste cu PlayerInfo.

6. Probabil ca la linia de mai sus ii lipseste un ; de la sfarsit.

Descarca foreach include si pune`l in gmul tau.

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.