Jump to content
  • 0

Two Error


SpriTe_

Question

Mai devreme am mai facut un topic in care am spus ca rezolv un GM si iata ca mai am 2 erori:

[pawn]

error 010: invalid function or declaration

error 001: expected token: ";", but found "-identifier-"

[/pawn]

Si scriptul:

[pawn]

stock RichPlayerName(playerid) {                        //aici vin erorile !!!

    new RichName[32];

    GetPlayerName(playerid, RichName, 64);

    return RichName;

}

[/pawn]

Help me please`!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Cum vreti voi sa invatati daca nici nu incercati? O sa stati mereu sa va ajutam noi ?

[pawn]stock RichPlayerName( playerid )

{

    new RichName[ MAX_PLAYER_NAME ];

    GetPlayerName( playerid, RichName, sizeof RichName );

    return ( RichName );

}[/pawn]

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Link to comment
Share on other sites

NexT." post="144963" timestamp="1370848533"]

Cum vreti voi sa invatati daca nici nu incercati? O sa stati mereu sa va ajutam noi ?

[pawn]stock RichPlayerName( playerid )

{

    new RichName[ MAX_PLAYER_NAME ];

    GetPlayerName( playerid, RichName, sizeof RichName );

    return ( RichName );

}[/pawn]

Si care-i diferenta dintre ce mi-ai dat tu si ce ti-am dat eu? =d

Nici asa nu merge !

Link to comment
Share on other sites

Vezi cu asta GetPlayerName( playerid, RichName, sizeof( RichName ));

Tot asa, vezi ca erorile nu mi le da la ceea ce e dupa {, dar la prima linie

[pawn]

stock RichPlayerName ( playerid )

[/pawn]

Si erorile:

[pawn]

error 010: invalid function or declaration

error 001: expected token: ";", but found "-identifier-"

[/pawn]

Link to comment
Share on other sites

Uite un stock nou facut acum de mine

[pawn]

stock GetName ( playerid )

{

    new

          i [ 24 ]

    ;

    GetPlayerName ( playerid , i , 24 ) ;

    return i ;

}

[/pawn]

Daca si aici iti da erori inseamna ca e de la linia de mai sus ;)

Massari e curva mea

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.