10.06.2013, 13:47
Hello, could someone please tell me what is causing this error. If someone could join me on Teamspeak, I would appreciate it alot. ts-igrp.tk
Код:
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 ) { if(response == EDIT_RESPONSE_FINAL) { if(fOffsetX > 1.4) { fOffsetX = 1.4; SendClientMessage(playerid, COLOR_WHITE, "Maximum X Offset exeeded, damped to maximum"); } if(fOffsetY > 1.4) { fOffsetY = 1.4; SendClientMessage(playerid, COLOR_WHITE, "Maximum Y Offset exeeded, damped to maximum"); } if(fOffsetZ > 1.4) { fOffsetZ = 1.4; SendClientMessage(playerid, COLOR_WHITE, "Maximum Z Offset exeeded, damped to maximum"); } if(fOffsetX < -1.4) { fOffsetX = -1.4; SendClientMessage(playerid, COLOR_WHITE, "Maximum X Offset exeeded, damped to maximum"); } if(fOffsetY < -1.4) { fOffsetY = -1.4; SendClientMessage(playerid, COLOR_WHITE, "Maximum Y Offset exeeded, damped to maximum"); } if(fOffsetZ < -1.4) { fOffsetZ = -1.4; SendClientMessage(playerid, COLOR_WHITE, "Maximum Z Offset exeeded, damped to maximum"); } if(fScaleX > 1.5) { fScaleX = 1.5; SendClientMessage(playerid, COLOR_WHITE, "Maximum X Scale exeeded, damped to maximum"); } if(fScaleY > 1.5) { fScaleY = 1.5; SendClientMessage(playerid, COLOR_WHITE, "Maximum Y Scale exeeded, damped to maximum"); } if(fScaleZ > 1.5) { fScaleZ = 1.5; SendClientMessage(playerid, COLOR_WHITE, "Maximum Z Scale exeeded, damped to maximum"); } new slotid = GetPVarInt(playerid, "ToySlot"); PlayerToyInfo[playerid][slotid][ptPosX] = fOffsetX; PlayerToyInfo[playerid][slotid][ptPosY] = fOffsetY; PlayerToyInfo[playerid][slotid][ptPosZ] = fOffsetZ; PlayerToyInfo[playerid][slotid][ptRotX] = fRotX; PlayerToyInfo[playerid][slotid][ptRotY] = fRotY; PlayerToyInfo[playerid][slotid][ptRotZ] = fRotZ; PlayerToyInfo[playerid][slotid][ptScaleX] = fScaleX; PlayerToyInfo[playerid][slotid][ptScaleY] = fScaleY; PlayerToyInfo[playerid][slotid][ptScaleZ] = fScaleZ; ShowEditMenu(playerid); } else { ShowEditMenu(playerid); SendClientMessage(playerid, COLOR_WHITE, "You have stopped yourself from editing the toy."); } return 1;
Код:
warning 235: public function lacks forward declaration (symbol "OnPlayerEditAttachedObject") C:\Users\Josh\Desktop\Server422 - Copy\gamemodes\NGRP2.pwn(3742) : error 017: undefined symbol "EDIT_RESPONSE_FINAL" C:\Users\Josh\Desktop\Server422 - Copy\gamemodes\NGRP2.pwn(75452) : error 017: undefined symbol "EditAttachedObject" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase