SA-MP Forums Archive
Help.. - 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: Help.. (/showthread.php?tid=553130)



Help.. - Brys - 28.12.2014

Help me with those errors please!


pawn Код:
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(11234) : warning 217: loose indentation
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(11242) : warning 217: loose indentation
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(25549) : error 017: undefined symbol "Get2DPosZone"
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(25556) : error 017: undefined symbol "Get2DPosZone"
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(34509) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(34510) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(34511) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(34512) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(34521) : error 017: undefined symbol "AttachDynamicObjectToVehicle"
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(34771) : warning 217: loose indentation
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(43593) : warning 217: loose indentation
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(44461) : warning 217: loose indentation
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(46375) : warning 217: loose indentation
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(46376) : warning 217: loose indentation
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(51887) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditAttachedObject")
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(53616) : error 017: undefined symbol "EditAttachedObject"
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(58784) : error 017: undefined symbol "Get3DZone"
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(58784) : warning 202: number of arguments does not match definition
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(58818) : error 017: undefined symbol "Get3DZone"
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(58818) : warning 202: number of arguments does not match definition
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(59049) : warning 217: loose indentation
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(59085) : warning 217: loose indentation
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(61815) : error 017: undefined symbol "Get3DZone"
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(61815) : warning 202: number of arguments does not match definition
C:\Users\Mamoun\Desktop\PRRP\gamemodes\PRRP.pwn(62971) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


12 Errors.



Re: Help.. - JakeHunter1 - 28.12.2014

Can you put lines ..


Re: Help.. - 1fret - 28.12.2014

You need to make a forward for this "OnPlayerEditAttachedObject". And for loose indentation make sure the lines are under each other.

pawn Код:
//will get loose indentation warning
     SendClientMessage(playerid,color,"text " );
   SendClientMessage(playerid,color,"text " );
//wil not get warning
      SendClientMessage(playerid,color,"text " );
      SendClientMessage(playerid,color,"text " );



Re : Help.. - MCZOFT - 28.12.2014

For this
PHP код:
AttachDynamicObjectToVehicle 
you'll need just this one
PHP код:
 AttachObjectToVehicle 
and dont forget to include the latest a_objects.inc

PHP код:
error 017undefined symbol "Get2DPosZone and Get3..." 
Give me the lines i'll fix it for u


PHP код:
 warning 217loose indentation 
Just Arrange the lines each of them correctly.

Good luck


Re: Help.. - Sew_Sumi - 28.12.2014

Quote:
Originally Posted by 1fret
Посмотреть сообщение
You need to make a forward for this "OnPlayerEditAttachedObject". And for loose indentation make sure the lines are under each other.

pawn Код:
//will get loose indentation warning
     SendClientMessage(playerid,color,"text " );
   SendClientMessage(playerid,color,"text " );
//wil not get warning
      SendClientMessage(playerid,color,"text " );
      SendClientMessage(playerid,color,"text " );
There's obviously a lot more wrong than just this.......

Get2DPosZone
AttachDynamicObjectToVehicle
EditAttachedObject
Get3DZone

and missing Special_Action_Cuffed as well...


Chances are a missing or outdated include is causing this, or the scripter has messed up a decent portion of the script they have.


You NEED to debug your code... You won't learn from simply pasting up everything to the forums.

Those errors are telling you what the issue is, a warning will still allow the compile but things will have problems.

Another error is the parameters not matching what was defined earlier in the script for a function in the script.



So many errors, you need to fix it.