11.05.2015, 12:38
I have a problem with this it shows those errors at the line i added // ERROR HERE
I need help fixing this
I need help fixing this
Код:
warning 225: unreachable code error 029: invalid expression, assumed zero
Код:
for(new h=0; h<=MAX_TELEPORTS; h++) { if(IsPlayerInRangeOfPoint(playerid, 1, TeleportInfo[h][gstartCX], TeleportInfo[h][gstartCY], TeleportInfo[h][gstartCZ])) { new file[64]; format(file,sizeof(file),"teleports/teleport%d.txt",h); new Float: X, Float: Y, Float: Z; X = dini_Float(file,"endfloatx"); Y = dini_Float(file,"endfloaty"); Z = dini_Float(file,"endfloatz"); new Q = dini_Int(file,"virtualworld"); new W = dini_Int(file,"interior"); SetPlayerVirtualWorld(playerid,Q); SetPlayerInterior(playerid,W); SetPlayerPos(playerid,X,Y,Z); return 1; } else { new file[64]; format(file,sizeof(file),"teleports/teleport%d.txt",h); new Float: X, Float: Y, Float: Z; X = dini_Float(file,"endfloatx"); Y = dini_Float(file,"endfloaty"); Z = dini_Float(file,"endfloatz"); new Q = dini_Int(file,"endvirtualworld"); new W = dini_Int(file,"endinterior"); SetPlayerVirtualWorld(playerid,Q); SetPlayerInterior(playerid,W); SetPlayerPos(playerid,X,Y,Z); return 1; } else { new filee[64]; format(filee,sizeof(filee),"teleports/teleport%d.txt",h); new Float: XX, Float: YY, Float: ZZ; XX = dini_Float(filee,"endfloatx"); YY = dini_Float(filee,"endfloaty"); ZZ = dini_Float(filee,"endfloatz"); if(IsPlayerInRangeOfPoint(playerid,1, XX,YY,ZZ)) { new file[64]; format(file,sizeof(file),"teleports/teleport%d.txt",h); new Float: X, Float: Y, Float: Z; X = dini_Float(file,"startfloatx"); Y = dini_Float(file,"startfloaty"); Z = dini_Float(file,"startfloatz"); new Q = dini_Int(file,"startvirtualworld"); new W = dini_Int(file,"startinterior"); SetPlayerVirtualWorld(playerid,Q); SetPlayerInterior(playerid,W); SetPlayerPos(playerid,X,Y,Z); return 1; } else // ERROR HERE << { new file[64]; format(file,sizeof(file),"teleports/teleport%d.txt",h); new Float: X, Float: Y, Float: Z; X = dini_Float(file,"startfloatx"); Y = dini_Float(file,"startfloaty"); Z = dini_Float(file,"startfloatz"); new Q = dini_Int(file,"startvirtualworld"); new W = dini_Int(file,"startinterior"); SetPlayerVirtualWorld(playerid,Q); SetPlayerInterior(playerid,W); SetPlayerPos(playerid,X,Y,Z); return 1; } } } return 1; }