11.07.2012, 02:53
I get these warning
Lines
Код:
C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(1206) : warning 201: redefinition of constant/macro (symbol "SendRequest(%1,%2)") C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16657) : warning 219: local variable "fScaleX" shadows a variable at a preceding level C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16657) : warning 219: local variable "fScaleY" shadows a variable at a preceding level C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16657) : warning 219: local variable "fScaleZ" shadows a variable at a preceding level C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16666) : warning 213: tag mismatch C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16667) : warning 213: tag mismatch C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16667) : warning 206: redundant test: constant expression is non-zero C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16668) : warning 213: tag mismatch C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16668) : warning 205: redundant code: constant expression is zero C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16670) : warning 213: tag mismatch C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16671) : warning 213: tag mismatch C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16671) : warning 206: redundant test: constant expression is non-zero C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16672) : warning 213: tag mismatch C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16672) : warning 205: redundant code: constant expression is zero C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16674) : warning 213: tag mismatch C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16675) : warning 213: tag mismatch C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16675) : warning 206: redundant test: constant expression is non-zero C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16676) : warning 213: tag mismatch C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(16676) : warning 205: redundant code: constant expression is zero C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(42014) : warning 202: number of arguments does not match definition C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(47875) : warning 204: symbol is assigned a value that is never used: "name" C:\Users\Richard\Desktop\Servidor\gamemodes\SL-RP1.2.8.pwn(55172) : warning 203: symbol is never used: "CurrentDialog" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 22 Warnings.
Код:
public OnPlayerEditAttachedObject( playerid, response, index, modelid, boneid,Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ,Float:fRotX, Float:fRotY, Float:fRotZ,Float:fScaleX, Float:fScaleY, Float:fScaleZ ) { PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = fOffsetX; PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = fOffsetY; PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = fOffsetZ; PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = fRotX; PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = fRotY; PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = fRotZ; PlayerToyInfo[playerid][slotselection[playerid]][ftscaleX] = fScaleX; if(fScaleX < 0.1) PlayerToyInfo[playerid][slotselection[playerid]][ftscaleX] = 0.1; else if(fScaleX > 1.5) PlayerToyInfo[playerid][slotselection[playerid]][ftscaleX] = 1.5; PlayerToyInfo[playerid][slotselection[playerid]][ftscaleY] = fScaleY; if(fScaleY < 0.1) PlayerToyInfo[playerid][slotselection[playerid]][ftscaleY] = 0.1; else if(fScaleY > 1.5) PlayerToyInfo[playerid][slotselection[playerid]][ftscaleY] = 1.5; PlayerToyInfo[playerid][slotselection[playerid]][ftscaleZ] = fScaleZ; if(fScaleZ < 0.1) PlayerToyInfo[playerid][slotselection[playerid]][ftscaleZ] = 0.1; else if(fScaleZ > 1.5) PlayerToyInfo[playerid][slotselection[playerid]][ftscaleZ] = 1.5; SetPlayerAttachedObject(playerid, slotselection[playerid], PlayerToyInfo[playerid][slotselection[playerid]][ptModelID], PlayerToyInfo[playerid][slotselection[playerid]][ptBone], PlayerToyInfo[playerid][slotselection[playerid]][ptPosX], PlayerToyInfo[playerid][slotselection[playerid]][ptPosY], PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ], PlayerToyInfo[playerid][slotselection[playerid]][ptRotX], PlayerToyInfo[playerid][slotselection[playerid]][ptRotY], PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ], PlayerToyInfo[playerid][slotselection[playerid]][ftscaleX], PlayerToyInfo[playerid][slotselection[playerid]][ftscaleY], PlayerToyInfo[playerid][slotselection[playerid]][ftscaleZ]); SendClientMessageEx(playerid, -1, "* Finalizaste de editar este objeto. Usa {FF8000}/toys {FFFFFF}si quieres editar otro objeto."); slotselection[playerid] = -1; Editing[playerid] = 0; return 1; }