Stupid problem
#1

how to resolve these errors:

Код:
D:\skripta\Windows\filterscripts\holder.pwn(37) : error 017: undefined symbol "RemovePlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(38) : error 017: undefined symbol "RemovePlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(44) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(45) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(46) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(47) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(48) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(49) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(50) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(51) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(52) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(53) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(54) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(55) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(56) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(57) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(58) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(59) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(60) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(61) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(62) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(63) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(64) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(65) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(66) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\skripta\Windows\filterscripts\holder.pwn(67) : error 017: undefined symbol "SetPlayerAttachedObject"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#2

Its not SetPlayerAttachedObject, but
pawn Код:
AttachObjectToPlayer(objectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);
Also it's DestroyObject(objectid);
Reply
#3

where to put this?
Reply
#4

Replace SetPlayerAttachedObject with AttachObjectToPlayer and it's arguments.

Replace RemovePlayerAttachedObject with DestroyObject(objectid); and it's arguments.
Reply
#5

thx...really stupid problem
Reply
#6

but when i replace SetPlayerAttachedObject with AttachObjectToPlayer ... and RemovePlayerAttachedObject with DestroyObject i have these errors:

Код:
D:\skripta\Windows\filterscripts\holder.pwn(232) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(232) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(233) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(233) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(233) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(233) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(233) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(234) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(234) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(234) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(234) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(234) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(235) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(235) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(235) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(235) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(235) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(236) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(236) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(236) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(236) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(236) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(237) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(237) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(237) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(237) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(237) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(238) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(238) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(238) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(238) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(238) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(239) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(239) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(239) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(239) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(239) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(240) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(240) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(240) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(240) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(240) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(241) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(241) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(241) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(241) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(241) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(242) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(242) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(242) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(242) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(242) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(243) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(243) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(243) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(243) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(243) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(244) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(244) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(244) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(244) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(244) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(245) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(245) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(245) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(245) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(245) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(246) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(246) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(246) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(246) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(246) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(247) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(247) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(247) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(247) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(247) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(248) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(248) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(248) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(248) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(248) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(249) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(249) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(249) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(249) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(249) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(250) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(250) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(250) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(250) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(250) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(251) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(251) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(251) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(251) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(251) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(252) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(252) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(252) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(252) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(252) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(253) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(253) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(253) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(253) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(253) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(254) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(254) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(254) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(254) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(254) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(255) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(255) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(255) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(255) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(255) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(256) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(256) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(256) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(256) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(256) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(257) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(257) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(257) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(257) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(257) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(258) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(258) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(258) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(258) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(258) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(259) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(259) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(259) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(259) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(259) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(260) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(260) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(260) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(260) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(260) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(261) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(261) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(261) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(261) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(261) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(262) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(262) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(262) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(262) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(262) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(263) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(263) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(263) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(263) : warning 202: number of arguments does not match definition
D:\skripta\Windows\filterscripts\holder.pwn(263) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1104 Warnings.
Reply
#7

Then you don't got the right arguments..

You need all of those:

pawn Код:
AttachObjectToPlayer(objectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);
rX/Y/Z = rotation
Reply
#8

and these errors:

Код:
D:\skripta\Windows\filterscripts\holder.pwn(37) : error 017: undefined symbol "objectid"
D:\skripta\Windows\filterscripts\holder.pwn(37) : warning 215: expression has no effect
D:\skripta\Windows\filterscripts\holder.pwn(38) : error 017: undefined symbol "objectid"
D:\skripta\Windows\filterscripts\holder.pwn(38) : warning 215: expression has no effect
D:\skripta\Windows\filterscripts\holder.pwn(39) : error 029: invalid expression, assumed zero
Reply
#9

new object1;
object1 = CreateObject(arguments);

You need to store them in a variable, then delete the object.
DestroyObject(object1);
Reply
#10

dude what do you know about scripting objects? go check out the wiki http://wiki.sa-mp.com
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)