Jump to content

Question

Posted

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`!

5 answers to this question

Recommended Posts

Posted

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

Posted

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 !

Posted

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

 

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

 

Posted

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]

Posted

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

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.