[Include] Ascript.inc
#7

Quote:
Originally Posted by iZN
Посмотреть сообщение
A include for 3 things? Are you kidding me? You could just define them. Also there was a mistake IsPlayerAdmin(playerid), shouldn't be 'playerid' will be 'i', as you're looping.

pawn Код:
#define GivePlayerScore(%0,%1) SetPlayerScore(%0, GetPlayerScore(%0) + %1)
#define SendAdminMessage(%0,%1) for(new i = 0; i < MAX_PLAYERS; i++); if(IsPlayerAdmin(i)) SendClientMessage(i, %0, %1)
#define SetPlayerMoney(%0,%1) ResetPlayerMoney(%0); GivePlayerMoney(%0,%1)
Quote:
Originally Posted by Forum Rules
Do Not Post Untested Code - If you are replying to a problem and you haven't confirmed that your code will work, you are likely to make the problem worse, not better.
Please.. Let me clear that for you since your code is wrong.

Код:
#define SendAdminMessage(%0,%1) for(new i = 0; i < MAX_PLAYERS; i++); if(IsPlayerAdmin(i)) SendClientMessage(i, %0, %1)
Oh really? Still don't see it?

Код:
for(new i = 0; i < MAX_PLAYERS; i++);
Still don't see it?

Код:
for(new i = 0; i < MAX_PLAYERS; i++);
And now with your completely wrong arguments (u kiddin? you could just make definez and dats it) you made newbie scripter delete his post. No mather how much of these newbies we see, it's always good to actually give them proper instructions and direct them in right way instead of posting wrong and untested code and making them delete the post.

(no harm is meant to be done with this post, no hard feelings please)
Reply


Messages In This Thread
Ascript.inc - by Areax - 25.11.2013, 19:02
Re: Ascript.inc - by dannyk0ed - 25.11.2013, 19:24
Respuesta: Ascript.inc - by deryan - 25.11.2013, 19:27
Re: Ascript.inc - by iZN - 25.11.2013, 19:39
Re: Ascript.inc - by Areax - 25.11.2013, 19:44
Re: Ascript.inc - by iZN - 25.11.2013, 19:46
Re: Ascript.inc - by fiki574 - 25.11.2013, 20:02
Re: Ascript.inc - by iZN - 25.11.2013, 20:11
Re: Ascript.inc - by fiki574 - 25.11.2013, 20:15
Re: Ascript.inc - by CreativityLacker - 27.11.2013, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)