23.06.2015, 08:56
Код:
D:\My server\gamemodes\LvG_Script.pwn(1984) : warning 202: number of arguments does not match definition D:\My server\gamemodes\LvG_Script.pwn(1984) : warning 202: number of arguments does not match definition D:\My server\gamemodes\LvG_Script.pwn(1986) : warning 202: number of arguments does not match definition D:\My server\gamemodes\LvG_Script.pwn(1986) : warning 202: number of arguments does not match definition D:\My server\gamemodes\LvG_Script.pwn(1988) : error 001: expected token: "-string end-", but found "-identifier-" D:\My server\gamemodes\LvG_Script.pwn(1988) : error 001: expected token: "-string end-", but found "-identifier-" D:\My server\gamemodes\LvG_Script.pwn(1988) : warning 215: expression has no effect D:\My server\gamemodes\LvG_Script.pwn(1988) : error 001: expected token: ";", but found "-integer value-" D:\My server\gamemodes\LvG_Script.pwn(1988) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
CMD:pm(playerid, params[]) { new str[128], str2[128], id, adminstr[128]; if(sscanf(params,"ds[128]", id, str2)) return SendClientMessage(playerid, COLOR_YELLOW,"USAGE: /pm [id] [message]"); if(IsPlayerConnected(id)) { if(id != playerid) { if(DND[id] == 0) { format(str, sizeof(str),"PM to [%d]%s: %s", id, GetPlayerName(id), str2); SendClientMessage(playerid, COLOR_YELLOW, str); format(str, sizeof(str),"PM from [%d]%s: %s", playerid, GetPlayerName(playerid), str2); SendClientMessage(id, COLOR_YELLOW, str); SendClientMessage(id, -1,"Use "COLOR_YELLOW"/rpm [message] "COLOR_WHITE"to reply to this PM"); format(adminstr, sizeof(adminstr),"PM from %s[%d] to %s[%d]: %s", PlayerName2(playerid), playerid, PlayerName2(id), id, str2); MessageTo4(grey, adminstr); LastPm[id] = playerid; } else return SendClientMessage(playerid, red,"That player is in do not disturb mode!"); } else return SendClientMessage(playerid, red,"You cannot PM yourself"); } else return SendClientMessage(playerid, red,"Player is not connected"); return 1; }