25.11.2013, 19:02
(
Последний раз редактировалось Areax; 25.11.2013 в 19:43.
)
DELETE.
#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)
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 Код:
|
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.
|
#define SendAdminMessage(%0,%1) for(new i = 0; i < MAX_PLAYERS; i++); if(IsPlayerAdmin(i)) SendClientMessage(i, %0, %1)
for(new i = 0; i < MAX_PLAYERS; i++);
for(new i = 0; i < MAX_PLAYERS; i++);
Calm down Mr. Pro Scripter, it is just a small typo. What will happen?
"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." They will sue me for adding a ; by mistake? I didn't FORCED him to delete his post, and please don't get over reacted. |
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 SetPlayerMoney(%0, %1) ResetPlayerMoney(%0), GivePlayerMoney(%0, %1)