19.01.2013, 19:05
Hello there can any one help me with this errors?
ERRORS
CODE:
ERRORS
Код HTML:
E:\samp\Scratch\gamemodes\ESRP.pwn(97) : error 028: invalid subscript (not an array or too many subscripts): "pShowLeaveMessage" E:\samp\Scratch\gamemodes\ESRP.pwn(97) : warning 215: expression has no effect E:\samp\Scratch\gamemodes\ESRP.pwn(97) : error 001: expected token: ";", but found "]" E:\samp\Scratch\gamemodes\ESRP.pwn(97) : error 029: invalid expression, assumed zero E:\samp\Scratch\gamemodes\ESRP.pwn(97) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код HTML:
public OnPlayerDisconnect(playerid, reason) { new LeaveMessage[128]; switch(reason) { case 0: format( LeaveMessage,sizeof LeaveMessage, "%s timed out from the server.", GetName(playerid) ); case 1: format( LeaveMessage,sizeof LeaveMessage, "%s left the server.", GetName(playerid) ); case 2: format( LeaveMessage,sizeof LeaveMessage, "%s is banned or kicked from the server.", GetName(playerid) ); } if( pShowLeaveMessage[playerid] == 1 ) SendClientMessage( playerid, COLOR_GREEN, LeaveMessage ); PlayerInfo[playerid][pLogged] = false; pShowLeaveMessage[playerid] = true; SaveStats(playerid); return 1; }