17.09.2010, 18:11
begginnning (it isn't the fulll script)
after onplayercommand text
the last GM lines
errors and warnings:
PHP Code:
new DMZone[MAX_PLAYERS];
PHP Code:
dcmd(t,1,cmdtext);//
PHP Code:
dcmd_t(playerid, params[])
{
new string33[256], message, Name;
if(sscanf(params, "z", message)) return SendClientMessage(playerid, COLOR_ORANGE, "Usage: /T [Text]");
format(string33, sizeof(string33), "[TeamChat] %s (%d): %s", Name(playerid), playerid, message);//20010
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(DMZone(i) == DMZone(playerid)) SendClientMessage(i, YELLOW, string33);
}
}
return 1;
}
Quote:
FULLHOUSE.pwn(20010) : error 012: invalid function call, not a valid address FULLHOUSE.pwn(20010) : warning 215: expression has no effect FULLHOUSE.pwn(20010) : error 001: expected token: ";", but found ")" FULLHOUSE.pwn(20010) : error 029: invalid expression, assumed zero FULLHOUSE.pwn(20010) : fatal error 107: too many error messages on one line |