SA-MP Forums Archive
Error Help +Rep - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error Help +Rep (/showthread.php?tid=537201)



Error Help +Rep - MasonSFW - 14.09.2014

This error


And here this code



Re: Error Help +Rep - dusk - 14.09.2014

Remove the "const" from name parameter.


Re: Error Help +Rep - MasonSFW - 14.09.2014

But line 38 still warning


Re: Error Help +Rep - SickAttack - 14.09.2014

Remove line 38 and line 33, you don't need them or even use them.


Re: Error Help +Rep - MasonSFW - 14.09.2014

It not working, But thank for help me
That script i want from http://pastebin.com/AE78GVBK
here

Im only need when player connect to my server if he name frank server will change to Frank,
But that script not work can someone help me ?


Re: Error Help +Rep - Sawalha - 14.09.2014

pawn Код:
public OnPlayerConnect(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof name);
    name[0] = toupper(name[0]);  // Character 0 is the first letter in the text (name) , so it will be now in any case: Jack, Frank, Samy
    SetPlayerName(playerid, name);
    return 1;
}



Re: Error Help +Rep - MasonSFW - 14.09.2014

Thank you, But it not working