Jump to content
  • 0

Cateva erori.


SpriTe_

Question

Salut baieti am un GM care-l repar acum si iata ca m-am intalnic cu inca cateva erori, la care nu pot defini liniile:

[pawn]

(546) : error 017: undefined symbol "RegDialog"

(560) : error 017: undefined symbol "OnLogin"

(562) : error 017: undefined symbol "OnLogin"

(573) : error 017: undefined symbol "hit"

(573) : warning 215: expression has no effect

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

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

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

[/pawn]

Si iata liniile:

Linia 546

[pawn]ShowPlayerDialog( playerid, RegDialog, DIALOG_STYLE_INPUT, "{E60000}Register", rstr,"Register", "Let's Play" );[/pawn]

Linia 560

[pawn]ShowPlayerDialog( playerid, OnLogin, DIALOG_STYLE_MSGBOX, "{00FF00}Logged in", string, "Quit", "" );[/pawn]

Linia 562

[pawn]else ShowPlayerDialog( playerid, OnLogin, DIALOG_STYLE_MSGBOX, "{00FF00}Logged in", "\t\t{ACACAC}ACCOUNT:\n{FFFFFF}You have been automatically LoggedIn\n\n{FFFFFF}Admin Level: {00FF00}0 {FFFFFF}\n\n{FFFFFF}V.I.P Level: {00FF00}0", "Quit", "" );[/pawn]

Linia 436

[pawn][/pawn]

Linia 573

[pawn] if ( hit[ playerid ] > 0 )[/pawn]

Multumesc anticipat !

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Pui dupa include asta.

[pawn]#define RegDialog 999

#define OnLogin 998

new hit[MAX_PLAYERS];[/pawn]

mersi, s-a rezolvat cu alea, acum am si alte erori(caci am spus ca rezolv un GM):

[pawn]

(580) : error 017: undefined symbol "ReturnPlayerName"

(585) : error 017: undefined symbol "g_DuelingID1"

(587) : error 017: undefined symbol "g_DuelInProgress"

(587) : warning 215: expression has no effect

(590) : error 017: undefined symbol "Joined"

(590) : warning 215: expression has no effect

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

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

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

[/pawn]

Liniile:

Linia 580

[pawn]format( str2, sizeof( str2 ), "The hit on {E60000}%s (%i) {33CCFF}has been cancelled {E60000}(disconnected)", ReturnPlayerName( playerid ), playerid );[/pawn]

Linia 585

[pawn]if ( playerid == g_DuelingID1 || playerid == g_DuelingID2 )[/pawn]

Linia 587

[pawn] g_DuelInProgress = 0;[/pawn]

Linia 590

[pawn]if ( Joined[ playerid] == true )[/pawn]

Link to comment
Share on other sites

[pawn]new g_DuelingID1;

new g_DuelingID2;

new g_DuelInProgress;

new Joined[MAX_PLAYERS];

stock ReturnPlayerName( playerid )

{

    new nume[MAX_PLAYER_NAME];

    GetPlayerName(playerid, nume, sizeof(nume));

    return nume;

}[/pawn]

Cand mai copiezi un FS iai si variabilele.

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

[pawn]new g_DuelingID1;

new g_DuelingID2;

new g_DuelInProgress;

new Joined[MAX_PLAYERS];

stock ReturnPlayerName( playerid )

{

    new nume[MAX_PLAYER_NAME];

    GetPlayerName(playerid, nume, sizeof(nume));

    return nume;

}[/pawn]

Cand mai copiezi un FS iai si variabilele.

K, simplu acest GM nu e al meu, m-a rugat un prieten sa-l rezolv, si nush de unde a luat:

[pawn]

(603) : error 017: undefined symbol "JoinCount"

(603) : warning 215: expression has no effect

(609)error 017: undefined symbol "CPProgess"

(609) : warning 215: expression has no effect

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

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

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

[/pawn]

Liniile:

Linia 603

[pawn]JoinCount--;[/pawn]

Linia 609

[pawn]CPProgess[ playerid ] = 0;[/pawn]

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.