/announce and pickups
#1

So ive created a pickup, but when i enter in it says " press /enter if you want to entry" or something like.
And im using mAdmin, when I type /announce my game is closing.



dcmd_announce(playerid, params[])
{
new pName[24], str[128];
if(PlayerInfo[playerid][AdminLevel] < 1) return false;
GetPlayerName(playerid, pName, sizeof(pName));
if(!strlen(params)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /announce [message]");

SendClientMessageToAll(COLOR_BRIGHTRED, "-------------------------");
SendClientMessageToAll(COLOR_YELLOW, params);
SendClientMessageToAll(COLOR_BRIGHTRED, "-------------------------");
format(str, sizeof(str), "Mod Message: %s (ID: %d) has announced: '%s'.", pName, playerid);
SendModMsg(COLOR_WHITE, str);
return 1;
}
Reply
#2

?
Reply
#3

Announce fixed:
Код:
format(str, sizeof(str), "Mod Message: %s (ID: %d) has announced: '%s'.", pName, playerid, params)
SendModMsg(COLOR_WHITE, str);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)