Jump to content
  • 0

Ajutatima


Nurdock

Question

Problema intalnita (descriere): Am facut un Textdraw de la numele sv si imi da ceva eroare si nu stiu cum sa o rezolv.
Ero(area / rile) / warning-(ul / urile):

 

C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1626) : error 017: undefined symbol "TDEditor_TD"
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1626) : warning 215: expression has no effect
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1626) : error 001: expected token: ";", but found "]"
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1626) : error 029: invalid expression, assumed zero
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1626) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Liniile de cod / sursa / script-ul(obligatoriu):

 

    TDEditor_TD[0] = TextDrawCreate(503.399963, 418.573303, "LD_pool:ball");
    TextDrawLetterSize(TDEditor_TD[0], 0.000000, 0.000000);
    TextDrawTextSize(TDEditor_TD[0], 31.000000, 27.000000);
    TextDrawAlignment(TDEditor_TD[0], 1);
    TextDrawColor(TDEditor_TD[0], -1);
    TextDrawSetShadow(TDEditor_TD[0], 0);
    TextDrawSetOutline(TDEditor_TD[0], 0);
    TextDrawBackgroundColor(TDEditor_TD[0], 255);
    TextDrawFont(TDEditor_TD[0], 4);
    TextDrawSetProportional(TDEditor_TD[0], 0);
    TextDrawSetShadow(TDEditor_TD[0], 0);

    TDEditor_TD[1] = TextDrawCreate(487.400115, 390.199951, "");
    TextDrawLetterSize(TDEditor_TD[1], 0.000000, 0.000000);
    TextDrawTextSize(TDEditor_TD[1], 64.000000, 53.000000);
    TextDrawAlignment(TDEditor_TD[1], 1);
    TextDrawColor(TDEditor_TD[1], -1);
    TextDrawSetShadow(TDEditor_TD[1], 0);
    TextDrawSetOutline(TDEditor_TD[1], 0);
    TextDrawBackgroundColor(TDEditor_TD[1], 0);
    TextDrawFont(TDEditor_TD[1], 5);
    TextDrawSetProportional(TDEditor_TD[1], 0);
    TextDrawSetShadow(TDEditor_TD[1], 0);
    TextDrawSetPreviewModel(TDEditor_TD[1], 18931);
    TextDrawSetPreviewRot(TDEditor_TD[1], 250.000000, 0.000000, 272.000000, 1.000000);

    TDEditor_TD[2] = TextDrawCreate(510.799957, 422.213317, "G");
    TextDrawLetterSize(TDEditor_TD[2], 0.620800, 2.257067);
    TextDrawAlignment(TDEditor_TD[2], 1);
    TextDrawColor(TDEditor_TD[2], -16776961);
    TextDrawSetShadow(TDEditor_TD[2], 0);
    TextDrawSetOutline(TDEditor_TD[2], 0);
    TextDrawBackgroundColor(TDEditor_TD[2], 255);
    TextDrawFont(TDEditor_TD[2], 1);
    TextDrawSetProportional(TDEditor_TD[2], 1);
    TextDrawSetShadow(TDEditor_TD[2], 0);

    TDEditor_TD[3] = TextDrawCreate(534.000122, 429.679992, "ta-Mp");
    TextDrawLetterSize(TDEditor_TD[3], 0.418400, 1.756800);
    TextDrawAlignment(TDEditor_TD[3], 1);
    TextDrawColor(TDEditor_TD[3], -16776961);
    TextDrawSetShadow(TDEditor_TD[3], 0);
    TextDrawSetOutline(TDEditor_TD[3], 0);
    TextDrawBackgroundColor(TDEditor_TD[3], 255);
    TextDrawFont(TDEditor_TD[3], 1);
    TextDrawSetProportional(TDEditor_TD[3], 1);
    TextDrawSetShadow(TDEditor_TD[3], 0);


Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:Nu stiu ce sa fac.

Link to comment
Share on other sites

18 answers to this question

Recommended Posts

  • 0

Si de unde sa stim care sunt liniile alea spune langa ele asta e linia x asta e linia y ca nu ne dam seama asa

 

Si la inceputul gmului ai pus

New TDEditor_TD[5];

?

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

Erorile mi sau facut dar acuma au aparut warningurile astea 

 

C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1667) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1668) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1669) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1670) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1671) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1672) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1673) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1674) : warning 213: tag mismatch
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

Header size:          22844 bytes
Code size:          2079756 bytes
Data size:          9009996 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:11128980 bytes

44 Warnings.

Link to comment
Share on other sites

  • 0

nu posta doar warningurile, dane si liniile 

adica asta 

CTRL+G paste la numarul liniei

1667

1668

1669

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

Acestea sunt warningurile de la compilere

C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1630) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1631) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1632) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1633) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1634) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1635) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1636) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1637) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1638) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1639) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1640) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1642) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1643) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1644) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1645) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1646) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1647) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1648) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1649) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1650) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1651) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1652) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1653) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1654) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1656) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1657) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1658) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1659) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1660) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1661) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1662) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1663) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1664) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1665) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1667) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1668) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1669) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1670) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1671) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1672) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1673) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1674) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1675) : warning 213: tag mismatch
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1676) : warning 213: tag mismatch
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

Header size:          22844 bytes
Code size:          2079756 bytes
Data size:          9009832 bytes
Stack/heap size:    2000000 bytes; estimated max. usage: unknown, due to recursion
Total requirements:13112432 bytes

44 Warnings.
 

Acuma va dau liniile

 1630   TDEditor_TD[0] = TextDrawCreate(503.399963, 418.573303, "LD_pool:ball");
  1631  TextDrawLetterSize(TDEditor_TD[0], 0.000000, 0.000000);
  1632  TextDrawTextSize(TDEditor_TD[0], 31.000000, 27.000000);
   1633 TextDrawAlignment(TDEditor_TD[0], 1);
  1634  TextDrawColor(TDEditor_TD[0], -1);
   1635 TextDrawSetShadow(TDEditor_TD[0], 0);
   1636 TextDrawSetOutline(TDEditor_TD[0], 0);
   1637 TextDrawBackgroundColor(TDEditor_TD[0], 255);
  1638  TextDrawFont(TDEditor_TD[0], 4);
   1639 TextDrawSetProportional(TDEditor_TD[0], 0);
   1640 TextDrawSetShadow(TDEditor_TD[0], 0);

1642    TDEditor_TD[1] = TextDrawCreate(487.400115, 390.199951, "");
  1643  TextDrawLetterSize(TDEditor_TD[1], 0.000000, 0.000000);
   1644 TextDrawTextSize(TDEditor_TD[1], 64.000000, 53.000000);
   1645 TextDrawAlignment(TDEditor_TD[1], 1);
   1646 TextDrawColor(TDEditor_TD[1], -1);
  1647  TextDrawSetShadow(TDEditor_TD[1], 0);
   1648 TextDrawSetOutline(TDEditor_TD[1], 0);
   1649 TextDrawBackgroundColor(TDEditor_TD[1], 0);
   1650 TextDrawFont(TDEditor_TD[1], 5);
   1651 TextDrawSetProportional(TDEditor_TD[1], 0);
   1652 TextDrawSetShadow(TDEditor_TD[1], 0);
  1653  TextDrawSetPreviewModel(TDEditor_TD[1], 18931);
  1654  TextDrawSetPreviewRot(TDEditor_TD[1], 250.000000, 0.000000, 272.000000, 1.000000);

  1656  TDEditor_TD[2] = TextDrawCreate(510.799957, 422.213317, "G");
  1657  TextDrawLetterSize(TDEditor_TD[2], 0.620800, 2.257067);
  1658  TextDrawAlignment(TDEditor_TD[2], 1);
 1659   TextDrawColor(TDEditor_TD[2], -16776961);
  1660  TextDrawSetShadow(TDEditor_TD[2], 0);
  1661  TextDrawSetOutline(TDEditor_TD[2], 0);
  1662  TextDrawBackgroundColor(TDEditor_TD[2], 255);
   1663 TextDrawFont(TDEditor_TD[2], 1);
  1664  TextDrawSetProportional(TDEditor_TD[2], 1);
  1665  TextDrawSetShadow(TDEditor_TD[2], 0);

  1667   TDEditor_TD[3] = TextDrawCreate(534.000122, 429.679992, "ta-Mp");
  1668   TextDrawLetterSize(TDEditor_TD[3], 0.418400, 1.756800);
   1669   TextDrawAlignment(TDEditor_TD[3], 1);
   1670 TextDrawColor(TDEditor_TD[3], -16776961);
  1671  TextDrawSetShadow(TDEditor_TD[3], 0);
   1672 TextDrawSetOutline(TDEditor_TD[3], 0);
  1673  TextDrawBackgroundColor(TDEditor_TD[3], 255);
 1674   TextDrawFont(TDEditor_TD[3], 1);
  1675  TextDrawSetProportional(TDEditor_TD[3], 1);
   1676    TextDrawSetShadow(TDEditor_TD[3], 0);
 

Link to comment
Share on other sites

  • 0

Acele td-uri probaabil sunt cu tagul [playerid]

adica trebuie sa pui asa:

TDEditor_TD[3][playerid] = TextDrawCreate(534.000122, 429.679992, "ta-Mp");
TextDrawLetterSize(TDEditor_TD[3][playerid], 0.418400, 1.756800);
TextDrawAlignment(TDEditor_TD[3][playerid], 1);
TextDrawColor(TDEditor[3][playerid], -16776961);
TextDrawSetShadow(TDEditor_TD[3][playerid], 0);
TextDrawSetOutline(TDEditor_TD[3][playerid], 0);
TextDrawBackgroundColor(TDEditor_TD[3][playerid], 255);
TextDrawFont(TDEditor_TD[3][playerid], 1);
TextDrawSetProportional(TDEditor_TD[3][playerid], 1);
TextDrawSetShadow(TDEditor_TD[3][playerid], 0);

si faci  asa la toate

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

  • 0

acuma imi da iarasi eroarea asta

C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1630) : warning 215: expression has no effect
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1630) : error 001: expected token: ";", but found "["
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1630) : error 029: invalid expression, assumed zero
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1630) : error 017: undefined symbol "playerid"
C:\Users\admin\Desktop\vProject\gamemodes\gamemode.pwn(1630) : fatal error 107: too many error messages on one line

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


4 Errors.

Link to comment
Share on other sites

  • 0

Nu nu are treaba cu [playerid] petru ca e numele serverului nu are nevoie sa creeze unul pentru fiecare player,

 

arata cum ai creat variabila TDEditor_TD

 

Si apropo aceasta eroare

 

Header size:          22844 bytes
Code size:          2079756 bytes
Data size:          9009832 bytes
Stack/heap size:    2000000 bytes; estimated max. usage: unknown, due to recursion
Total requirements:13112432 bytes

44 Warnings.

 

 

Este pentru ca ai loop in loop sau lat motiv gen

for(i<max_players;i++)

{

  for(f;f<100;f++)

  {  

  SCM(i,-1,"Eraore")

  }

}

 

Deci si oe asta ar trebui sa o rezolvi

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

acuma daca mati ajuta sa fac asta

eader size:          22844 bytes
Code size:          2079756 bytes
Data size:          9009832 bytes
Stack/heap size:    2000000 bytes; estimated max. usage: unknown, due to recursion
Total requirements:13112432 bytes

Link to comment
Share on other sites

  • 0

Poti deschide serverul cu eroarea aia, doar ca ocupa multa memorie. Iar dacanu iti ziceam eu nu te prindeai ca e eroare :))

Si in plua nu avem cum sa stim nu zice linia deci poate fi oriunde in gm. Gandeste te ce ai facut inainte sa iti dea eroarea

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

Adaugi la inceput la GM printre celalalte "new":

new Text:TDEditor_TD1, Text:TDEditor_TD2, Text:TDEditor_TD3, Text:TDEditor_TD4;

 

Adauga la "OnPlayerConnect":

    TextDrawShowForPlayer(playerid, TDEditor_TD1);


    TextDrawShowForPlayer(playerid, TDEditor_TD2);


    TextDrawShowForPlayer(playerid, TDEditor_TD3);


    TextDrawShowForPlayer(playerid, TDEditor_TD4);[/quote]

 

Adauga la "OnGameModeInit" peste celalalt:

TDEditor_TD1 = TextDrawCreate(503.399963, 418.573303, "LD_pool:ball");
    TextDrawLetterSize(TDEditor_TD1, 0.000000, 0.000000);
    TextDrawTextSize(TDEditor_TD1, 31.000000, 27.000000);
    TextDrawAlignment(TDEditor_TD1, 1);
    TextDrawColor(TDEditor_TD1, -1);
    TextDrawSetShadow(TDEditor_TD1, 0);
    TextDrawSetOutline(TDEditor_TD1, 0);
    TextDrawBackgroundColor(TDEditor_TD1, 255);
    TextDrawFont(TDEditor_TD1, 4);
    TextDrawSetProportional(TDEditor_TD1, 0);
    TextDrawSetShadow(TDEditor_TD1, 0);

    TDEditor_TD2 = TextDrawCreate(487.400115, 390.199951, "");
    TextDrawLetterSize(TDEditor_TD2, 0.000000, 0.000000);
    TextDrawTextSize(TDEditor_TD2, 64.000000, 53.000000);
    TextDrawAlignment(TDEditor_TD2, 1);
    TextDrawColor(TDEditor_TD2, -1);
    TextDrawSetShadow(TDEditor_TD2, 0);
    TextDrawSetOutline(TDEditor_TD2, 0);
    TextDrawBackgroundColor(TDEditor_TD2, 0);
    TextDrawFont(TDEditor_TD2, 5);
    TextDrawSetProportional(TDEditor_TD2, 0);
    TextDrawSetShadow(TDEditor_TD2, 0);
    TextDrawSetPreviewModel(TDEditor_TD2, 18931);
    TextDrawSetPreviewRot(TDEditor_TD2, 250.000000, 0.000000, 272.000000, 1.000000);

    TDEditor_TD3 = TextDrawCreate(510.799957, 422.213317, "G");
    TextDrawLetterSize(TDEditor_TD3, 0.620800, 2.257067);
    TextDrawAlignment(TDEditor_TD3, 1);
    TextDrawColor(TDEditor_TD3, -16776961);
    TextDrawSetShadow(TDEditor_TD3, 0);
    TextDrawSetOutline(TDEditor_TD3, 0);
    TextDrawBackgroundColor(TDEditor_TD3, 255);
    TextDrawFont(TDEditor_TD3, 1);
    TextDrawSetProportional(TDEditor_TD3, 1);
    TextDrawSetShadow(TDEditor_TD3, 0);

    TDEditor_TD4 = TextDrawCreate(534.000122, 429.679992, "ta-Mp");
    TextDrawLetterSize(TDEditor_TD4, 0.418400, 1.756800);
    TextDrawAlignment(TDEditor_TD4, 1);
    TextDrawColor(TDEditor_TD4, -16776961);
    TextDrawSetShadow(TDEditor_TD4, 0);
    TextDrawSetOutline(TDEditor_TD4, 0);
    TextDrawBackgroundColor(TDEditor_TD4, 255);
    TextDrawFont(TDEditor_TD4, 1);
    TextDrawSetProportional(TDEditor_TD4, 1);
    TextDrawSetShadow(TDEditor_TD4, 0);

  • Upvote 1

Daca ti-am fost de ajutor +1 Respect!Multumesc

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.