Kriege Errors:
.pwn(8364) : error 017: undefined symbol "string"
.pwn(8364) : error 017: undefined symbol "string"
.pwn(8364) : error 029: invalid expression, assumed zero
.pwn(8364) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
public OnPlayerStateChange(playerid, newstate, oldstate)
{
ForAllPlayers(i)
{
new sendername[MAX_PLAYER_NAME];
GetPlayerName(i, sendername, sizeof(sendername));
if(newstate == PLAYER_STATE_DRIVER)
{
PlayerEnterTime[playerid] = GetTickCount();
}
else if(oldstate == PLAYER_STATE_DRIVER)
{
if((GetTickCount()-PlayerEnterTime[playerid]) < 220)//player entered and exited vehicle faster than 220 ms.
{
format(string, sizeof(string), "SERVERGUARD: %s wurde gebannt. Grund: Vehicle Teleport", sendername);
SendClientMessageToAll(COLOR_LIGHTRED, string);
SendClientMessage(i,COLOR_GRAD3, "Du wurdest vom Serverguard gebannt, sollte es sich hierbei um ein Versehen handeln,");
SendClientMessage(i,COLOR_GRAD3, "erstelle hiervon ein Screen (F8) und Erstelle im Forum einen Entbannantrag.");
BanSelfmade(i, -1, "Vehicle Teleport", -1, 1);
}
}
}