10.02.2013, 03:43
Код:
CMD:pm(playerid, params[]) { new id, string[128], string2[128], sender[MAX_PLAYER_NAME], reciever[MAX_PLAYER_NAME]; if(sscanf(params, "us[75]", id, params[2])) return SendClientMessage(playerid, 0xADFF2F, "Използване: /pm <id> <message>"); GetPlayerName(playerid, sender, sizeof(sender)); GetPlayerName(id, reciever, sizeof(reciever)); format(string, sizeof(string), "%s: %s" sender, params[2]); format(string2, sizeof(string2), "%s: %s" reciever, params[2]); SendClientMessage(id, 0xADFF2F, string); SendClientMessage(id, 0xADFF2F, string2); return 1; }
Код:
Erros and warnings: D:\igri\GTA-SanAndreas\gamemodes\grandlarc.pwn(585) : error 001: expected token: "-string end-", but found "-identifier-" D:\igri\GTA-SanAndreas\gamemodes\grandlarc.pwn(585) : warning 215: expression has no effect D:\igri\GTA-SanAndreas\gamemodes\grandlarc.pwn(585) : warning 215: expression has no effect D:\igri\GTA-SanAndreas\gamemodes\grandlarc.pwn(585) : error 001: expected token: ";", but found ")" D:\igri\GTA-SanAndreas\gamemodes\grandlarc.pwn(585) : error 029: invalid expression, assumed zero D:\igri\GTA-SanAndreas\gamemodes\grandlarc.pwn(585) : fatal error 107: too many error messages on one line
HELP