Komm wieder mal nicht weiter ( Ich Muss das Lernen.:()
public OnPlayerDisconnect(playerid, reason)
{
new pname[MAX_PLAYER_NAME];
new string [100];
GetPlayerName(playerid, pname, sizeof(pname));
switch (reason)
{
case 0: format(string), sizeof(string), " %s hat den Server verlassen. [Time-Out]",pname);
case 1: format(string), sizeof(string), " %s hat den Server verlassen.",pname);
case 2: format(string), sizeof(string), " %s hat den Server verlassen [Kick/Ban]",pname);
}
SendClientMessageToAll(0xFF6347AA,string);
return 1;
}
Error:
C:\Users\Daniel\Desktop\Selfmade\gamemodes\Selfmade.pwn(61) : warning 202: number of arguments does not match definition
C:\Users\Daniel\Desktop\Selfmade\gamemodes\Selfmade.pwn(61) : warning 202: number of arguments does not match definition
C:\Users\Daniel\Desktop\Selfmade\gamemodes\Selfmade.pwn(61) : warning 215: expression has no effect
C:\Users\Daniel\Desktop\Selfmade\gamemodes\Selfmade.pwn(61) : warning 215: expression has no effect
C:\Users\Daniel\Desktop\Selfmade\gamemodes\Selfmade.pwn(61) : warning 215: expression has no effect
C:\Users\Daniel\Desktop\Selfmade\gamemodes\Selfmade.pwn(61) : error 001: expected token: ";", but found ")"
C:\Users\Daniel\Desktop\Selfmade\gamemodes\Selfmade.pwn(61) : error 036: empty statement
C:\Users\Daniel\Desktop\Selfmade\gamemodes\Selfmade.pwn(62) : error 014: invalid statement; not in switch
C:\Users\Daniel\Desktop\Selfmade\gamemodes\Selfmade.pwn(62) : warning 215: expression has no effect
C:\Users\Daniel\Desktop\Selfmade\gamemodes\Selfmade.pwn(62) : error 001: expected token: ";", but found ":"
C:\Users\Daniel\Desktop\Selfmade\gamemodes\Selfmade.pwn(62) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Selfmade\gamemodes\Selfmade.pwn(62) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.