Hallo liebe Community,
Ich versuche gerade Tore mit der Taste Z öffnen zu lassen.
Leider klappt das nicht ganz.
if(newkeys == KEY_YES)
{
if(IsACop(playerid)) || PlayerInfo[playerid][pAdmin] >= 5)
{
if(IsPlayerInRangeOfPoint(playerid,30.0,2237.831787, 2450.287842, 9.971788))
{
MoveDynamicObject(FBIEingangTor,2237.849854, 2458.842041, 10.011017, 3.5);
SetProTimer("FBIEingangTor1", 9000, 0);
}
else
{
MoveDynamicObject(FBIEingangTor,2237.831787, 2450.287842, 9.971788, 3.5);
}
if(IsPlayerInRangeOfPoint(playerid,30.0,2293.852295, 2500.680908, 5.106819))
{
MoveDynamicObject(FBIGarageTorA,2293.852295, 2508.680908, 5.106819, 3.5);
SetProTimer("FBIGarageTorA1", 9000, 0);
}
else
{
MoveDynamicObject(FBIGarageTorA,2293.852295, 2500.680908, 5.106819, 3.5);
}
if(IsPlayerInRangeOfPoint(playerid,30.0,2334.016357, 2442.365723, 7.487854))
{
MoveDynamicObject(FBIGarageTorB,2334.016357, 2442.365723, 13.000000, 3.5);
SetProTimer("FBIGarageTorB1", 9000, 0);
}
else
{
MoveDynamicObject(FBIGarageTorB,2334.016357, 2442.365723, 7.487854, 3.5);
}
if(IsPlayerInRangeOfPoint(playerid,30.0,1549.5883789063, -1627.7351074219, 16.296792984009))
{
MoveDynamicObject(LSPDHofTor,1549.6455078125, -1638.0, 16.296792984009, 5.0);
SetProTimer("LSPDHofTor1", 10000, 0);
}
else
{
MoveDynamicObject(LSPDHofTor,1549.5883789063, -1627.7351074219, 16.296792984009, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid,30.0,1584.721313, -1637.874512, 12.525799))
{
MoveDynamicObject(LSPDTor,1592.721313, -1637.874512, 12.525799, 5.0);
SetProTimer("LSPDTor1", 10000, 0);
}
else
{
MoveDynamicObject(LSPDTor,1584.721313, -1637.874512, 12.525799, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid,30.0,-1632.4403,687.4573,7.1875))
{
MoveDynamicObject(SFPDTorA,-1618.2524414063, 688.2, 7, 3.5);
MoveDynamicObject(SFPDTorB,-1646.1857910156, 688.2, 7, 3.5);
SetProTimer("SFPDTore", 5000, 0);
}
else
{
MoveDynamicObject(SFPDTorA,-1632.4403,687.4573,7.1875, 3.5);
MoveDynamicObject(SFPDTorB,-1632.4403,687.4573,7.1875, 3.5);
}
}
Aber ich bekomme folgende error :
Current directory: C:\Dokumente und Einstellungen\User\Eigene Dateien\SA-MP\2414_2426\gamemodes
IR.pwn(2746) : error 001: expected token: "}", but found "-identifier-"
IR.pwn(2761) : error 010: invalid function or declaration
IR.pwn(2764) : warning 228: length of initialler exceeds size of the enum field
IR.pwn(2764) : warning 227: more initiallers than enum fields
IR.pwn(2764) : warning 227: more initiallers than enum fields
IR.pwn(2764) : warning 227: more initiallers than enum fields
IR.pwn(2764) : warning 213: tag mismatch
IR.pwn(2764) : warning 227: more initiallers than enum fields
IR.pwn(2764) : warning 213: tag mismatch
IR.pwn(2764) : warning 227: more initiallers than enum fields
IR.pwn(2764) : warning 213: tag mismatch
IR.pwn(2764) : warning 227: more initiallers than enum fields
IR.pwn(2764) : warning 227: more initiallers than enum fields
IR.pwn(2764) : warning 227: more initiallers than enum fields
IR.pwn(2764) : warning 227: more initiallers than enum fields
IR.pwn(2764) : warning 227: more initiallers than enum fields
IR.pwn(2764) : warning 227: more initiallers than enum fields
IR.pwn(2764) : warning 227: more initiallers than enum fields
IR.pwn(2764) : warning 227: more initiallers than enum fields
IR.pwn(2764) : warning 227: more initiallers than enum fields
IR.pwn(2764) : error 018: initialization data exceeds declared size
IR.pwn(3689) : error 017: undefined symbol "sbExtortionTill"
IR.pwn(3690) : error 017: undefined symbol "sbTill"
IR.pwn(3760) : error 017: undefined symbol "sbEntranceX"
IR.pwn(6302) : warning 213: tag mismatch
IR.pwn(7528) : error 029: invalid expression, assumed zero
IR.pwn(7528) : warning 215: expression has no effect
IR.pwn(7528) : error 001: expected token: ";", but found ")"
IR.pwn(7528) : error 029: invalid expression, assumed zero
IR.pwn(7528) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
================ READY ================
Bitte um Hilfe.
MfG