SA-MP Forums Archive
Need help fast - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help fast (/showthread.php?tid=366676)



Need help fast (Symbol already defined Createobject and RemoveBuildingForPlayer) - VIP475 - 07.08.2012

C:\Documents and Settings\Admin\Desktop\zeze.pwn( : error 021: symbol already defined: "CreateObject"
C:\Documents and Settings\Admin\Desktop\zeze.pwn(76) : error 021: symbol already defined: "RemoveBuildingForPlayer"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


Any ideas?

Please say how to do. its map with objects


Re: Need help fast - shitbird - 07.08.2012

Show us where you've added the lines.
I'm guessing you may have placed them outside a callback.

RemoveBuildingForPlayer - goes in OnPlayerConnect.
CreateObject - goes in OnGameModeInit.


Re: Need help fast - VIP475 - 08.08.2012

its filterscript eh..

pawn Код:
#include <a_samp>
#include <streamer>
#define COLOR_DIS_RED 0xFF0000FF//color

public OnFilterScriptInit()
;

CreateObject(19425, 1895.95, 2715.50, 9.86,   0.00, 0.00, 89.12);     // With this I get error because after this are alot of lines with createobject. so it says symbol already defined 31

After this there are alot of lines with CreateObjec

After createobject there is

//MANSION

public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,COLOR_DIS_RED,"Be sure to register and join www.xxxxx.xx");
return 1;
}

RemoveBuildingForPlayer(playerid, 7857, 1452.6406, 2667.4453, 17.1953, 0.25); // this line says too symbol already defined.. after this there are alot of line with removebuildingforplayer.

and after it
CreateObject(19378, 1427.56, 2649.52, 14.77,   0.00, -90.00, 0.00); // starts again,alot of createobject lines too.


Please tell how to fix or show



Re: Need help fast - Devilxz97 - 08.08.2012

pawn Код:
#include <a_samp>
#include <streamer>
#define COLOR_DIS_RED 0xFF0000FF

public OnFilterScriptInit()
{
    CreateObject(19425, 1895.95, 2715.50, 9.86,   0.00, 0.00, 89.12);
    CreateObject(19378, 1427.56, 2649.52, 14.77,   0.00, -90.00, 0.00);
    return 1;
}

public OnPlayerConnect(playerid)
{
    SendClientMessage(playerid,COLOR_DIS_RED,"Be sure to register and join www.xxxxx.xx");
    RemoveBuildingForPlayer(playerid, 7857, 1452.6406, 2667.4453, 17.1953, 0.25);
    return 1;
}