READ THIS PLEASE
#1

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)
Reply
#2

Which line does the error come on?
Reply
#3

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
Reply
#4

Get rid of that 2 maybe? Why make the computer work, why not just make it 272.0000?
Reply
#5

makes no diffrent still get the error
Reply
#6

pawn Код:
AttackObjectToPlayer(ojectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);
You forgot about the playerid
Reply
#7

nope ive added it same error mate lol
Reply
#8

'thing' isn't indexed either.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)