23.01.2016, 16:26
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(43) : warning 213: tag mismatch
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(44) : warning 213: tag mismatch
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(45) : warning 213: tag mismatch
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(96) : error 035: argument type mismatch (argument 1)
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(97) : error 028: invalid subscript (not an array or too many subscripts): "arg0"
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(97) : warning 215: expression has no effect
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(97) : error 001: expected token: ";", but found "]"
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(97) : error 029: invalid expression, assumed zero
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(97) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(44) : warning 213: tag mismatch
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(45) : warning 213: tag mismatch
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(96) : error 035: argument type mismatch (argument 1)
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(97) : error 028: invalid subscript (not an array or too many subscripts): "arg0"
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(97) : warning 215: expression has no effect
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(97) : error 001: expected token: ";", but found "]"
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(97) : error 029: invalid expression, assumed zero
C:\Users\Core i5\Desktop\GRP4 EDITED\filterscripts\spikes.pwn(97) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Код:
#include <a_samp> #include <core> #include <float> new glob0[200][5]; public OnPlayerUpdate(playerid) { if(!IsPlayerConnected(playerid)) { return 0; } if(GetPlayerState(playerid) == 2) { new var0 = 0; while(++var0 < 200) { if(IsPlayerInRangeOfPoint(playerid, 1077936128, glob0[var0][1], glob0[var0][2], glob0[var0][3])) { if(glob0[var0][0] == 1) { new var1 = 0, var2 = 0, var3 = 0, var4 = 0; new var5 = GetPlayerVehicleID(playerid); GetVehicleDamageStatus(var5, var1, var2, var3, var4); var4 = functionAC4(1, 1, 1, 1); UpdateVehicleDamageStatus(var5, var1, var2, var3, var4); return 0; } } } } return 1; } function360(Float:arg0, Float:arg1, Float:arg2, Float:arg3) { for(new var0 = 0; var0 < 200; var0++) { if(!glob0[var0][0]) { glob0[var0][0] = 1; glob0[var0][1] = arg0; glob0[var0][2] = arg1; glob0[var0][3] = arg2 - 0.6999; glob0[var0][4] = CreateObject(2899, arg0, arg1, arg2 - 0.8999, 0.0, 0.0, arg3 - 90, 0); return 1; } } return 0; } function644() { for(new var0 = 0; var0 < 200; var0++) { if(glob0[var0][0] == 1) { glob0[var0][0] = 0; glob0[var0][1] = 0; glob0[var0][2] = 0; glob0[var0][3] = 0; DestroyObject(glob0[var0][4]); } } return 0; } function810(arg0) { for(new var0 = 0; var0 < 200; var0++) { if(IsPlayerInRangeOfPoint(arg0, 1073741824, glob0[var0][1], glob0[var0][2], glob0[var0][3])) { if(glob0[var0][0] == 1) { glob0[var0][0] = 0; glob0[var0][1] = 0; glob0[var0][2] = 0; glob0[var0][3] = 0; DestroyObject(glob0[var0][4]); return 1; } } } return 0; } functionAC4(arg0, arg1, arg2, arg3) { return (arg3 << 3) | ((arg2 << 2) | ((arg1 << 1) | arg0)); } functionB38(arg0, &arg1) { new var0 = strlen(arg0); while(arg1 < var0 && arg0[arg1] <= 32) { arg1++; } new var1 = arg1; new var2[20]; while(arg1 < var0 && arg0[arg1] > 32 && arg1 - var1 < 19) { var2[arg1 - var1] = arg0[arg1]; arg1++; } var2[arg1 - var1] = 0; return var2; } public OnPlayerCommandText(playerid, cmdtext) { new var0[256]; new var1 = 0; var0 = functionB38(cmdtext, var1); if(!strcmp(var0, "/idetis", true)) { if(280 != GetPlayerSkin(playerid) && 281 != GetPlayerSkin(playerid) && 282 != GetPlayerSkin(playerid) && 283 != GetPlayerSkin(playerid) && 285 != GetPlayerSkin(playerid) && 286 != GetPlayerSkin(playerid) && 287 != GetPlayerSkin(playerid)) { return SendClientMessage(playerid, 0x10F441AA, "Љi komanda policininkams.[Turi būti su apranga]"); } new Float:var2 = 0.0, Float:var3 = 0.0, Float:var4 = 0.0, Float:var5 = 0.0; GetPlayerPos(playerid, var2, var3, var4); GetPlayerFacingAngle(playerid, var5); function360(var2, var3, var4, var5); return 1; } if(!strcmp(var0, "/isimtis", true)) { if(280 != GetPlayerSkin(playerid) && 281 != GetPlayerSkin(playerid) && 282 != GetPlayerSkin(playerid) && 283 != GetPlayerSkin(playerid) && 285 != GetPlayerSkin(playerid) && 286 != GetPlayerSkin(playerid) && 287 != GetPlayerSkin(playerid)) { return SendClientMessage(playerid, 0x10F441AA, "Љi komanda policininkams.[Turi būti su apranga]"); } function810(playerid); return 1; } if(!strcmp(var0, "/isimtisvs", true)) { if(280 != GetPlayerSkin(playerid) && 281 != GetPlayerSkin(playerid) && 282 != GetPlayerSkin(playerid) && 283 != GetPlayerSkin(playerid) && 285 != GetPlayerSkin(playerid) && 286 != GetPlayerSkin(playerid) && 287 != GetPlayerSkin(playerid)) { return SendClientMessage(playerid, 0x10F441AA, "Љi komanda policininkams.[Turi būti su apranga]"); } function644(); return 1; } return 0; }