Object Pos?

KillerZ

Well-Known Member
Joined
Apr 6, 2014
Messages
74
Likes
0
Points
6
5
#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 
        [email protected] == 1
    then
        if
            Object.Model([email protected]) == 1210
        then
            Object.StorePos([email protected] [email protected] [email protected] [email protected])
        end
    end
end

:tog
0B12: [email protected] = [email protected] XOR 1
if
    [email protected] == 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