Some errors..
#6

Quote:
Originally Posted by KamalBa
Посмотреть сообщение
Khalid you mean to defined it ?
Kamal...

You can't just do #define adminuc[playerid]
and have the function set up for you!

I've said this before
Quote:
Originally Posted by me
Quote:
Originally Posted by KamalBa
Посмотреть сообщение
Код:
CMD:ac(playerid, params[])
{
 new tmp[256], playername[25], string[256];
 if (adlvl[playerid] < 1) return 0;
 if (sscanf(params, "s[128]", tmp)) return SendClientMessage2(playerid, COLOR_WHITE, "Usage: /ac [message]");
 GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
 format(string, sizeof(string), "Admin Chat [%s] %s", playername, tmp);
 SendMessageToAdmins(COLOR_ADMIN, string);
 print(string);
 return 1;
}
This is the full code

and i added

#define SendMessageToAdmins.
How is pawno supposed to know what to make of "#define SendMessageToAdmins" you could use this;
Reply


Messages In This Thread
Some errors.. - by KamalBa - 12.06.2015, 17:41
Re: Some errors.. - by [KHK]Khalid - 12.06.2015, 17:46
Re: Some errors.. - by Huba - 12.06.2015, 18:04
Re: Some errors.. - by [KHK]Khalid - 12.06.2015, 19:00
Re: Some errors.. - by KamalBa - 12.06.2015, 19:03
Re: Some errors.. - by JaydenJason - 12.06.2015, 19:18
Re: Some errors.. - by [KHK]Khalid - 12.06.2015, 19:19
Re: Some errors.. - by KamalBa - 12.06.2015, 19:24
Re: Some errors.. - by KamalBa - 12.06.2015, 19:28
Re: Some errors.. - by bgedition - 12.06.2015, 19:28

Forum Jump:


Users browsing this thread: 2 Guest(s)