Hallo, und zwar habe ich folgende errors:
C:\Dokumente und Einstellungen\Maurice\Desktop\SAMP sachen\Gazette\Gazette Deatchmatch\gamemodes\RSR.pwn(77826) : warning 215: expression has no effect
C:\Dokumente und Einstellungen\Maurice\Desktop\SAMP sachen\Gazette\Gazette Deatchmatch\gamemodes\RSR.pwn(77826) : error 001: expected token: ";", but found ")"
C:\Dokumente und Einstellungen\Maurice\Desktop\SAMP sachen\Gazette\Gazette Deatchmatch\gamemodes\RSR.pwn(77826) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\Maurice\Desktop\SAMP sachen\Gazette\Gazette Deatchmatch\gamemodes\RSR.pwn(77826) : 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.
code:
[pwn=77813]public AirBreak()
{
foreach (Player, i)
{
new Float:X, Float:Y, Float:Z, Float:ZM, Float:difference;
GetPlayerPos(i,X,Y,Z); //Get the players position
MapAndreas_FindZ_For2DCoord(X,Y,ZM); //Gets the max Z cord
difference = Z-ZM;
new string5[120];
if(!IsVehicleAir(i, GetPlayerVehicleID(i)))
{
if (difference > 100 && GetPlayerState(i) == PLAYER_STATE_PASSENGER GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
format(string5,sizeof(string5),"AdminCMD: %s wurde vom Server gekickt. Grund: Airbreak",SpielerInfo(i));
SendClientMessageToAll(COLOR_RED,string5);
}
//If players Z cord is more than 100 meters above the ground
if(difference > 10 && GetPlayerState(i) == PLAYER_STATE_ONFOOT)
{
format(string5,sizeof(string5),"AdminCMD: %s wurde vom Server gekickt. Grund: Airbreak",SpielerInfo(i));
SendClientMessageToAll(COLOR_RED,string5);
}
}
}
}[/pwn]