04.01.2015, 21:49
I get:
FOR:
Quote:
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(336) : warning 213: tag mismatch C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(336) : error 001: expected token: ")", but found "[" C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(336) : error 029: invalid expression, assumed zero C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(336) : warning 215: expression has no effect C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(336) : error 001: expected token: ";", but found "]" C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(336) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
Код:
stock CreateGangVehicle(f, fv, modelid, Float: x, Float: y, Float: z, Float: angle, color1, color2, price) { if(FamilyVehicleInfo[f][fv][fvId] == INVALID_VEHICLE_ID)LINE 336 { FamilyVehicleInfo[f][fv][fvModelId] = modelid; FamilyVehicleInfo[f][fv][fvSpawnx] = x; FamilyVehicleInfo[f][fv][fvSpawny] = y; FamilyVehicleInfo[f][fv][fvSpawnz] = z; FamilyVehicleInfo[f][fv][fvSpawna] = angle; FamilyVehicleInfo[f][fv][fvColor1] = color1; FamilyVehicleInfo[f][fv][fvColor2] = color2; FamilyVehicleInfo[f][fv][fvPrice] = price; FamilyVehicleInfo[f][fv][fvFuel] = 100.0; new carcreated = AddStaticVehicleEx(modelid,x,y,z,angle,color1,color2,-1); FamilyVehicleInfo[f][fv][fvId] = carcreated; printf("Created the gang vehicle for family %d | vehicleid #%d | familyvehicleslot #%d.", f, FamilyVehicleInfo[f][fv][fvId], fv); return carcreated; } return INVALID_VEHICLE_ID; }