02.03.2014, 10:40
I've resetted my gamemode and put in some color defines for my SCMToAll msg. Something like this
becomes...
C:\Documents and Settings\eros\Desktop\SAMP Server\gamemodes\TDScript9.pwn(74) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\eros\Desktop\SAMP Server\gamemodes\TDScript9.pwn(74) : warning 215: expression has no effect
C:\Documents and Settings\eros\Desktop\SAMP Server\gamemodes\TDScript9.pwn(74) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\eros\Desktop\SAMP Server\gamemodes\TDScript9.pwn(74) : error 017: undefined symbol "C_WHI"
C:\Documents and Settings\eros\Desktop\SAMP Server\gamemodes\TDScript9.pwn(74) : fatal error 107: too many error messages on one line
Line 74:
pawn Код:
public OnPlayerDisconnect(playerid, reason);
{
new
szString[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(szString, sizeof szString, ""C_RED"%s"C_WHI" has been disconnected in the server. (Timed Out/Crashed)", name);
case 1: format(szString, sizeof szString, ""C_RED"%s"C_WHI" has been disconnected in the server. (Quit)", name);
case 2: format(szString, sizeof szString, ""C_RED"%s"C_WHI" has been disconnected in the server. (Kicked/Banned)", name);
}
SendClientMessageToAll(-1, szString);
return 1;
}
C:\Documents and Settings\eros\Desktop\SAMP Server\gamemodes\TDScript9.pwn(74) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\eros\Desktop\SAMP Server\gamemodes\TDScript9.pwn(74) : warning 215: expression has no effect
C:\Documents and Settings\eros\Desktop\SAMP Server\gamemodes\TDScript9.pwn(74) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\eros\Desktop\SAMP Server\gamemodes\TDScript9.pwn(74) : error 017: undefined symbol "C_WHI"
C:\Documents and Settings\eros\Desktop\SAMP Server\gamemodes\TDScript9.pwn(74) : fatal error 107: too many error messages on one line
Line 74:
pawn Код:
case 0: format(szString, sizeof szString, ""C_RED"%s"C_WHI" has been disconnected in the server. (Timed Out/Crashed)", name);