Help Please
#2

Post me line 1206 in your game mode, secondly..

Quote:

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

these indicate that the variables 'fScaleX', 'fScaleY', and 'fScaleZ' have all been used in the script already.

Код:
public OnPlayerEditAttachedObject( playerid, response, index, modelid, boneid,Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ,Float:fRotX, Float:fRotY, Float:fRotZ,Float:fScalesX, Float:fScalesY, Float:fScalesZ )
{
	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] = fScalesX;
    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] = fScalesY;
 	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] = fScalesZ;
 	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;
}
Replace yours with this, recompile, send me remaining errors and lines explaining which errors are on what line.
Reply


Messages In This Thread
Help Please - by XxX(cena)XxX - 11.07.2012, 02:53
Re: Help Please - by WinterAce - 11.07.2012, 03:07
Re: Help Please - by XxX(cena)XxX - 11.07.2012, 04:23
Re: Help Please - by WinterAce - 11.07.2012, 04:32

Forum Jump:


Users browsing this thread: 1 Guest(s)