Jump to content
  • 0

Problema!Help ME!


Ricardo.

Question

Problema intalnita (descriere):Vreau sa fac sa apara deasupra playerului un text3D cu wanted si nush sa definesc pWantedText
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul:
Imagini / Video (optional):

C:UsersRicardoDesktopOneShotgamemodesOneShot.pwn(9794) : warning 213: tag mismatch

C:UsersRicardoDesktopOneShotgamemodesOneShot.pwn(9795) : error 017: undefined symbol "pWantedtext"
C:UsersRicardoDesktopOneShotgamemodesOneShot.pwn(9795) : warning 215: expression has no effect
C:UsersRicardoDesktopOneShotgamemodesOneShot.pwn(9795) : error 001: expected token: ";", but found "]"
C:UsersRicardoDesktopOneShotgamemodesOneShot.pwn(9795) : error 029: invalid expression, assumed zero
C:UsersRicardoDesktopOneShotgamemodesOneShot.pwn(9795) : fatal error 107: too many error messages on one line

 

  1. public SetPlayerCriminal(playerid,declare,reason[])
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5.      if(WantedLevel[playerid] > 0)
  6. {
  7. new atext[50];
  8. new pWantedText[60];
  9. if(WantedLevel[playerid] == 1) { atext = "Wanted 1"; }
  10. else if(WantedLevel[playerid] == 2) { atext = "Wanted 2"; }
  11. else if(WantedLevel[playerid] == 3) { atext = "Wanted 3"; }
  12. else if(WantedLevel[playerid] == 4) { atext = "Wanted 4"; }
  13. else if(WantedLevel[playerid] == 5) { atext = "Wanted 5"; }
  14. else if(WantedLevel[playerid] == 6) { atext = "Wanted 6"; }
  15. pWantedText [ playerid ] = Create3DTextLabel(atext, 0x2641FEAA, 30.0, 40.0, 50.0, 40.0, 0);
  16. Attach3DTextLabelToPlayer(pWantedtext [ playerid ], playerid,0.0, 0.0, 0.90);
  17. return 1;
  18.   }
  19. }
  20.     if(IsPlayerConnected(i) && gPlayerLogged[i] != 0)
  21.    {
  22.      if(WantedLevel[playerid] == 0)
  23. {
  24. Delete3DTextLabel ( pWantedtext [ playerid ] );
  25. return 1;
  26. }
  27. }

Ati incercat sa rezolvati singur?:Da dar nu mia esit. Si la WantedLEvel am definit asa nush daca e bun 

 

  1. new WantedLevel[MAX_PLAYERS];
Edited by Ricardo.

:D Respecta si vei fi respectat!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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.