Jump to content
  • 0

problema linia 47


Catalin321

Question

Problema intalnita (descriere): cand adaug ceva imi da eroarile urmatoare

Ero(area / rile) / warning-(ul / urile):

 

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

 

Liniile de cod / sursa / script-ul:

 

    Fond[playerid] = TextDrawCreate(641.500000, 168.099990, "usebox");

 

Imagini / Video (optional):http://postimg.org/image/dylz70ghn/full/

 

Ati incercat sa rezolvati singur?:da am incercat dar nu am reusit

Link to comment
Share on other sites

Recommended Posts

  • 0

new Text:Fond[MAX_PLAYERS];
new Text:ButonInapoi[MAX_PLAYERS];
new Text:ButonUrmator[MAX_PLAYERS];
new Text:DealerMasina[MAX_PLAYERS];
new Text:DealerPret[MAX_PLAYERS];
new Text:ButonCumpara[MAX_PLAYERS];
new Text:ButonTesteaza[MAX_PLAYERS];
new Text:ButonAnuleaza[MAX_PLAYERS];

 

public OnPlayerConnect(playerid)

{
    Fond[playerid] = TextDrawCreate(641.500000, 168.099990, "usebox");
    TextDrawLetterSize(Fond[playerid], 0.000000, 1.757408);
    TextDrawTextSize(Fond[playerid], -2.000000, 0.000000);
    TextDrawAlignment(Fond[playerid], 1);
    TextDrawColor(Fond[playerid], 0);
    TextDrawUseBox(Fond[playerid], true);
    TextDrawBoxColor(Fond[playerid], 102);
    TextDrawSetShadow(Fond[playerid], 0);
    TextDrawSetOutline(Fond[playerid], 0);
    TextDrawFont(Fond[playerid], 0);

    ButonInapoi[playerid] = TextDrawCreate(4.000000, 168.000015, "<");
    TextDrawLetterSize(ButonInapoi[playerid], 0.449999, 1.600000);
    TextDrawAlignment(ButonInapoi[playerid], 1);
    TextDrawColor(ButonInapoi[playerid], -1);
    TextDrawSetShadow(ButonInapoi[playerid], 0);
    TextDrawSetOutline(ButonInapoi[playerid], 1);
    TextDrawBackgroundColor(ButonInapoi[playerid], 51);
    TextDrawFont(ButonInapoi[playerid], 1);
    TextDrawSetProportional(ButonInapoi[playerid], 1);
    TextDrawSetSelectable(ButonInapoi[playerid], 1);

    ButonUrmator[playerid] = TextDrawCreate(624.000000, 167.066680, ">");
    TextDrawLetterSize(ButonUrmator[playerid], 0.449999, 1.600000);
    TextDrawAlignment(ButonUrmator[playerid], 1);
    TextDrawColor(ButonUrmator[playerid], -1);
    TextDrawSetShadow(ButonUrmator[playerid], 0);
    TextDrawSetOutline(ButonUrmator[playerid], 1);
    TextDrawBackgroundColor(ButonUrmator[playerid], 51);
    TextDrawFont(ButonUrmator[playerid], 1);
    TextDrawSetProportional(ButonUrmator[playerid], 1);
    TextDrawSetSelectable(ButonUrmator[playerid], 1);

    DealerMasina[playerid] = TextDrawCreate(105.000000, 167.533370, "Masina: Turismo");
    TextDrawLetterSize(DealerMasina[playerid], 0.449999, 1.600000);
    TextDrawAlignment(DealerMasina[playerid], 1);
    TextDrawColor(DealerMasina[playerid], -1);
    TextDrawSetShadow(DealerMasina[playerid], 0);
    TextDrawSetOutline(DealerMasina[playerid], 1);
    TextDrawBackgroundColor(DealerMasina[playerid], 51);
    TextDrawFont(DealerMasina[playerid], 1);
    TextDrawSetProportional(DealerMasina[playerid], 1);

    DealerPret[playerid] = TextDrawCreate(393.500000, 166.600036, "Pret: 25,000,000");
    TextDrawLetterSize(DealerPret[playerid], 0.449999, 1.600000);
    TextDrawAlignment(DealerPret[playerid], 1);
    TextDrawColor(DealerPret[playerid], -1);
    TextDrawSetShadow(DealerPret[playerid], 0);
    TextDrawSetOutline(DealerPret[playerid], 1);
    TextDrawBackgroundColor(DealerPret[playerid], 51);
    TextDrawFont(DealerPret[playerid], 1);
    TextDrawSetProportional(DealerPret[playerid], 1);

    ButonCumpara[playerid] = TextDrawCreate(0.500000, 186.666732, "Cumpara");
    TextDrawLetterSize(ButonCumpara[playerid], 0.449999, 1.600000);
    TextDrawAlignment(ButonCumpara[playerid], 1);
    TextDrawColor(ButonCumpara[playerid], -1);
    TextDrawSetShadow(ButonCumpara[playerid], 0);
    TextDrawSetOutline(ButonCumpara[playerid], 1);
    TextDrawBackgroundColor(ButonCumpara[playerid], 51);
    TextDrawFont(ButonCumpara[playerid], 1);
    TextDrawSetProportional(ButonCumpara[playerid], 1);
    TextDrawSetSelectable(ButonCumpara[playerid], 1);

    ButonTesteaza[playerid] = TextDrawCreate(284.000000, 183.866775, "Testeaza");
    TextDrawLetterSize(ButonTesteaza[playerid], 0.449999, 1.600000);
    TextDrawAlignment(ButonTesteaza[playerid], 1);
    TextDrawColor(ButonTesteaza[playerid], -1);
    TextDrawSetShadow(ButonTesteaza[playerid], 0);
    TextDrawSetOutline(ButonTesteaza[playerid], 1);
    TextDrawBackgroundColor(ButonTesteaza[playerid], 51);
    TextDrawFont(ButonTesteaza[playerid], 1);
    TextDrawSetProportional(ButonTesteaza[playerid], 1);
    TextDrawSetSelectable(ButonTesteaza[playerid], 1);

    ButonAnuleaza[playerid] = TextDrawCreate(570.500000, 185.733367, "Anuleaza");
    TextDrawLetterSize(ButonAnuleaza[playerid], 0.449999, 1.600000);
    TextDrawAlignment(ButonAnuleaza[playerid], 1);
    TextDrawColor(ButonAnuleaza[playerid], -1);
    TextDrawSetShadow(ButonAnuleaza[playerid], 0);
    TextDrawSetOutline(ButonAnuleaza[playerid], 1);
    TextDrawBackgroundColor(ButonAnuleaza[playerid], 51);
    TextDrawFont(ButonAnuleaza[playerid], 1);
    TextDrawSetProportional(ButonAnuleaza[playerid], 1);
    TextDrawSetSelectable(ButonAnuleaza[playerid], 1);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    TextDrawDestroy(Fond[playerid]);
    TextDrawDestroy(ButonInapoi[playerid]);
    TextDrawDestroy(ButonUrmator[playerid]);
    TextDrawDestroy(DealerMasini[playerid]);
    TextDrawDestroy(DealerPret[playerid]);
    TextDrawDestroy(ButonCumpara[playerid]);
    TextDrawDestroy(ButonTesteaza[playerid]);
    TextDrawDestroy(ButonAnuleaza[playerid]);
    return 1;
}

Link to comment
Share on other sites

  • 0

La on gamemodein:

 

for(new i = 0; i < MAX_PLAYERS; i++)
{
Fond = TextDrawCreate(641.500000, 168.099990, "usebox");
TextDrawLetterSize(Fond, 0.000000, 1.757408);
TextDrawTextSize(Fond, -2.000000, 0.000000);
TextDrawAlignment(Fond, 1);
TextDrawColor(Fond, 0);
TextDrawUseBox(Fond, true);
TextDrawBoxColor(Fond, 102);
TextDrawSetShadow(Fond, 0);
TextDrawSetOutline(Fond, 0);
TextDrawFont(Fond, 0);
 
      //Si asa mai departe...
}
Link to comment
Share on other sites

  • 0

acm sunt 13 erori

Dealeri.pwn(31) : error 010: invalid function or declaration
Dealeri.pwn(44) : error 010: invalid function or declaration
Dealeri.pwn(55) : error 010: invalid function or declaration
Dealeri.pwn(66) : error 010: invalid function or declaration
Dealeri.pwn(76) : error 010: invalid function or declaration
Dealeri.pwn(86) : error 010: invalid function or declaration
Dealeri.pwn(97) : error 010: invalid function or declaration
Dealeri.pwn(108) : error 010: invalid function or declaration
Dealeri.pwn(118) : error 010: invalid function or declaration
Dealeri.pwn(123) : error 017: undefined symbol "Fond"
Dealeri.pwn(123) : error 017: undefined symbol "playerid"
Dealeri.pwn(123) : error 029: invalid expression, assumed zero
Dealeri.pwn(123) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase


13 Errors.
================ READY ================

Edited by Catalin321
Link to comment
Share on other sites

  • 0

Nu ai aranjat bine liniile 31 44 55 66 76 86 97 108 118

Clasic... oare ce imi mai trece prin minte, aha, hilar.

 

Inainte sa invatati limbajul pawn incercati sa invatati cum sa aranjati gm-ul, va va fi de folos...

242086.png

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.