READ THIS PLEASE - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: READ THIS PLEASE (
/showthread.php?tid=83748)
READ THIS PLEASE -
shady91 - 26.06.2009
i get this when i complie
pawn Код:
new Float:x,Float:y,Float:z;
GetPlayerPos(i,x,y,z);
thing[i] = CreateStreamedObject(11111, x,y,z, 0.0000, 0.0000, 270.0000);
AttachObjectToPlayer(thing, x,y,z, 0.0000, 0.0000, 270.0000 +2);
the object ids isnt 1111111 its a valid object but im removeing it as i dont want people to see what im adding its something new
but if ya now why i get this error can ya tell me why lol.
Код:
C:\Documents and Settings\marcus\My Documents\marcus server\gamemodes\shady.pwn(7006) : error 035: argument type mismatch (argument 1)
Re: READ THIS PLEASE -
Grim_ - 27.06.2009
Which line does the error come on?
Re: READ THIS PLEASE -
shady91 - 27.06.2009
here mate if this is gone errors fine
Код:
AttachObjectToPlayer(thing, x,y,z, 0.0000, 0.0000, 270.0000 +2);
but i cant seem to figue this problme lol its probly easy its just im real tired n brains half asleep
Re: READ THIS PLEASE -
Weirdosport - 27.06.2009
Get rid of that 2 maybe? Why make the computer work, why not just make it 272.0000?
Re: READ THIS PLEASE -
shady91 - 27.06.2009
makes no diffrent still get the error
Re: READ THIS PLEASE -
Grim_ - 27.06.2009
pawn Код:
AttackObjectToPlayer(ojectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);
You forgot about the playerid
Re: READ THIS PLEASE -
shady91 - 27.06.2009
nope ive added it same error mate lol
Re: READ THIS PLEASE -
Donny_k - 27.06.2009
'thing' isn't indexed either.