15.05.2011, 00:08
Hi, When attempting to configure my gamemode, I get the following error:
C:\Users\samp\Desktop\SA-MP Server\gamemodes\3krp.pwn(859) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
Below is the coding:
C:\Users\samp\Desktop\SA-MP Server\gamemodes\3krp.pwn(859) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
Below is the coding:
Код:
public OnPlayerDisconnect(playerid, reason)
{
new str[70], Float:x, Float:y, Float:z, health;
GetPlayerName(playerid, Name, sizeof(Name));
aDuty{playerid} = 0;
SavePlayer(playerid);
switch (reason) {
case 0:
{
format(str, sizeof(str), "*** %s (%d) has left the server (Timeout)", Name, playerid);
PlayerInfo[playerid][pCrashed] = 1;
GetPlayerPos(playerid, x, y, z);
PlayerInfo[playerid][pCrashX] = x;
PlayerInfo[playerid][pCrashY] = y;
PlayerInfo[playerid][pCrashZ] = z;
}
case 1:
{
format(str, sizeof(str), "*** %s (%d) has left the server (Leaving)", Name, playerid);
}
case 2: format(str, sizeof(str), "*** %s (%d) has left the server (Kicked/Banned)", Name, playerid);
}
SendClientMessageToAll(COLOR_GREY, str);
GetPlayerHealth(playerid, health);
PlayerInfo[playerid][pHealth] = health;
SavePlayer(playerid);
return 1;
}

