SA-MP Forums Archive
MAX players name - 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: MAX players name (/showthread.php?tid=393060)



MAX players name - Roddan - 16.11.2012

Hello I get an error on this.

PHP код:
new sendername[MAX_PLAYERS_NAME
Код:
error 017: undefined symbol "MAX_PLAYERS_NAME"
error 009: invalid array size (negative, zero or out of bounds)
error 036: empty statement



Re: MAX players name - Socan - 16.11.2012

Try this.

PHP код:
new sendername[MAX_PLAYERS_NAME]; 



Re: MAX players name - Roddan - 16.11.2012

Thats what I have sorry.


Re: MAX players name - Socan - 16.11.2012

Here;
Код:
new PlayerName[MAX_PLAYER_NAME];



Re: MAX players name - Roddan - 16.11.2012

Wont work.


Re: MAX players name - Vince - 16.11.2012

Yes it will. Did you even look at your own code? Hell, did you even look at the error? Doesn't your tiny brain tell you that maybe, just maybe, you made a typing mistake?


Re: MAX players name - KiNG3 - 16.11.2012

@Vince
I have to agree, you can't just say it won't work. You probably didn't even see the difference in Socan's code compared to yours..


Re: MAX players name - Roddan - 16.11.2012

Quote:
Originally Posted by Vince
Посмотреть сообщение
Yes it will. Did you even look at your own code? Hell, did you even look at the error? Doesn't your tiny brain tell you that maybe, just maybe, you made a typing mistake?
Sorry for being new to scripting insulter.


Re: MAX players name - iGetty - 16.11.2012

When you create a topic, you're supposed to explain what the issue is, not just say "it won't work, here:", with the errors, actually detail it. Also, don't just start saying tiny little replies, 3 words on a reply isn't really explaining what/why it won't work/the issue is.

Take a little bit of time and type out the problem, then more people could help you.

Also, you say you're new to scripting, yet you've released things? Not that new to me. Smh


Re: MAX players name - Roddan - 17.11.2012

Sorry but I haven't released scripts on this forum if that's what you mean. But I tried to add
PHP код:
new sendername[MAX_PLAYERS_NAME]; 
at the top of the script and I have tried all of Socans answers but I still dont get it to work.