hallo,
Kann jemand sagen was da falsch ist bitte?
C:\Users\Hendo\Desktop\SAMP HERZ\gamemodes\Hayfun.pwn(1255) : error 029: invalid expression, assumed zero
C:\Users\Hendo\Desktop\SAMP HERZ\gamemodes\Hayfun.pwn(1255 -- 1256) : warning 215: expression has no effect
C:\Users\Hendo\Desktop\SAMP HERZ\gamemodes\Hayfun.pwn(1256) : error 001: expected token: ";", but found "new"
C:\Users\Hendo\Desktop\SAMP HERZ\gamemodes\Hayfun.pwn(1250) : warning 204: symbol is assigned a value that is never used: "vehicleid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
GetPlayerPos(i, x, y, z); GetVehicleHealth(GetPlayerVehicleID(i), health); new vehicleid = GetPlayerVehicleID(i); [b]Zeile: 1250[/b]
new VehicleModel = GetVehicleModel(GetPlayerVehicleID(i));
Dis = floatsqroot(floatpower(floatabs(floatsub(OldCoordsX[i],x)),2) + floatpower(floatabs(floatsub(OldCoordsY[i],y)),2));
if(VehicleModel==509||VehicleModel==481||VehicleModel==510) {SetVehicleHealth(GetPlayerVehicleID(i), 1000); }
if(VehicleModel==520||VehicleModel==476||VehicleModel==593||VehicleModel==553||VehicleModel==513||VehicleModel==512||VehicleModel==577||VehicleModel==592||VehicleModel==511||VehicleModel==539||VehicleModel==464||VehicleModel==519)} [b]Zeile: 1255[/b]
new speed = (floatround(Dis)*MULTIPLY_SPEED); [b]Zeile: 1256 [/b]
Danke