26.08.2015, 08:52
Error codes
on those lines
Second error lines
Код:
C:\Users\Core i5\Desktop\GRP4 EDITED\gamemodes\grandlarc.pwn(2294) : error 035: argument type mismatch (argument 1) C:\Users\Core i5\Desktop\GRP4 EDITED\gamemodes\grandlarc.pwn(2409) : error 017: undefined symbol "glob0" C:\Users\Core i5\Desktop\GRP4 EDITED\gamemodes\grandlarc.pwn(2409) : warning 215: expression has no effect C:\Users\Core i5\Desktop\GRP4 EDITED\gamemodes\grandlarc.pwn(2409) : error 001: expected token: ";", but found "]" C:\Users\Core i5\Desktop\GRP4 EDITED\gamemodes\grandlarc.pwn(2409) : error 029: invalid expression, assumed zero C:\Users\Core i5\Desktop\GRP4 EDITED\gamemodes\grandlarc.pwn(2409) : fatal error 107: too many error messages on one line
Код:
if(!IsPlayerConnected(playerid)) { return 0; } if(GetPlayerState(playerid) == 2) { new var0 = 0; while(++var0 < 200) { //2409 line --> 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; } } } }
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new var0[256]; new var1 = 0; //2294 line --> var0 = functionB38(cmdtext, var1); if(!strcmp(var0, "/spygliai", true)) { if(Policininkas[playerid] == false) { return SendClientMessage(playerid, 0x10F441AA, "Љi komanda policininkams."); } 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, "/spygliaip", true)) { if(Policininkas[playerid] == false) { return SendClientMessage(playerid, 0x10F441AA, "Љi komanda policininkams."); } function810(playerid); SendClientMessage(playerid, 0x10F441AA, "Panaikinai paskutinius padetus spyglius."); return 1; } if(!strcmp(var0, "/spygliaivs", true)) { if(Policininkas[playerid] == false) { return SendClientMessage(playerid, 0x10F441AA, "Љi komanda policininkams."); } function644(); SendClientMessage(playerid, 0x10F441AA, "Panaikinai visus spyglius."); return 1; } return 0; }