Object Pos?

KillerZ

Well-Known Member
Joined
Apr 6, 2014
Messages
73
Likes
1
Points
113
#1
Can someone explain why I crash, and possibly fix it? I'm trying to get an object's pos.

Code:
{$CLEO .cs}

0000:

:Load
wait 30 
if
  SAMP.Available
else_jump @Load

0B34: samp register_client_command "opos" to_label @tog

while true
wait 0
    if 
        0@ == 1
    then
        if
            Object.Model(31@) == 1210
        then
            Object.StorePos(31@ 1@ 2@ 3@)
        end
    end
end

:tog
0B12: 0@ = 0@ XOR 1
if
    0@ == 1
then
    0AF8: samp add_message_to_chat "On" color -1
else
    0AF8: samp add_message_to_chat "Off" color -1
end
Samp.CmdRet()
 
Top