SA-MP Forums Archive
Errors on compile - 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: Errors on compile (/showthread.php?tid=550079)



Errors on compile - Michael B - 10.12.2014

Hello there!

So, I attempted to insert the christmas utilities by OTACON in my gamemode.

All went well, until I got some errors on compile.

I fixed some of them, but I don`t have enough knowledge for the last ones.

I get errors from these lines:

pawn Код:
for(new object=0,index=10;object!=index;object++){DestroyObject(FireworksObjects[slots][object]); CountingFireworksObjects=0;} }
    KillTimer(KillUploaFireworks);
pawn Код:
for(new object=0,index=10;object!=index;object++){DestroyObject(DrinksObjects[slots][object]); CountingDrinksObjects=0;} }
pawn Код:
for(new object=0,index=10;object!=index;object++){DestroyObject(TreeObjects[slots][object]); CountingTreeObjects=0;} }
Also, from:

pawn Код:
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(InfoChristmas[playerid][DataActivated][2]==true && InfoChristmas[playerid][DataActivated][1]==true){
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
Errors:



Some help would be nice...


Re: Errors on compile - NGGMars - 10.12.2014

Anyway, some of the plugins that advanced scripted in many cases could not fit the on other gamemodes because of the different and includes.

Its better to use it as a filterscript, if you want to tie it with gamemode then on gamemode init add the rcon cmd to load fs.

Something like this,

SendRconCommand("loadfs FS name");

Hope it works good


Re: Errors on compile - NewbieTester - 10.12.2014

OnDialogResponse is already defined.Delete that line and put it to the old symbol


Re: Errors on compile - Michael B - 10.12.2014

@Furious: I introduced it to the game mode after I converted the commands from Rcon to my admin system.

@Newbie: I searched throught the defines and I couldn't find that line.

How to fix the 'object' errors?


Re: Errors on compile - bogushas - 10.12.2014

Change object to objekt or something like that.


Re: Errors on compile - imSaint - 10.12.2014

Quote:
Originally Posted by R3N3X
Посмотреть сообщение
@Furious: I introduced it to the game mode after I converted the commands from Rcon to my admin system.

@Newbie: I searched throught the defines and I couldn't find that line.

How to fix the 'object' errors?
The error on what you're getting with:
Quote:

public OnPlayerEditAttachedObject

It's already posted somewhere else in the script. So find the other:

Quote:

public OnPlayerEditAttachedObject

And put this:

Quote:

if(InfoChristmas[playerid][DataActivated][2]==true && InfoChristmas[playerid][DataActivated][1]==true){

There and delete the one with the error. Hope I could help with this!