PDA

View Full Version : Can someone please help me with this, my servers down


Josh_Main
10/06/2013, 02:47 PM
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 (c) 1997-2006, ITB CompuPhase

Guest123
10/06/2013, 02:56 PM
what is your samp version ?

Josh_Main
10/06/2013, 02:56 PM
0.3x

IceBilizard
10/06/2013, 02:58 PM
first off all do on top your script


#define EDIT_RESPONSE_FINAL


Then send me your OnPlayerEditAttachedObject public function

Josh_Main
10/06/2013, 03:04 PM
Sure, I got some guy helping me over Teamspeak. Thanks for your help man, if all else fails.. I'll send you the OnPlayerEditAttachedObject