CLEO Help Problem with Variable member

CLEO related
Status
Not open for further replies.

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
294
Reaction score
36
Location
Srbija
Code:
{$CLEO}

                                                                                                                              
0000: NOP                                                                         

Thread "Fr0z3n test v1.0"

const
SCREEN_SHOT_KEY = 119
end

:Misc
wait 0
if 0AAB:   file_exists "CLEO\PickupSett.ini"
then
    0B34: samp register_client_command "sp" to_label @Pickup_status                                                 
    0B34: samp register_client_command "spcmds" to_label [member=21661]S[/member]pcmds                   
    0B34: samp register_client_command "sptp" to_label [member=21661]S[/member]ptp                   
    0B34: samp register_client_command "spstp" to_label [member=21661]S[/member]pstp
    0B34: samp register_client_command "tpdel" to_label @tpdel
    0B34: samp register_client_command "spspec" to_label [member=21661]S[/member]pspec 
    0B34: samp register_client_command "spspecoff" to_label [member=21661]S[/member]pspecoff
    0B34: samp register_client_command "spsync" to_label [member=21661]S[/member]psync
    0B34: samp register_client_command "spdel" to_label [member=21661]S[/member]pdel 
    0B34: samp register_client_command "sppool" to_label [member=21661]S[/member]ppool     
    0AA8: call_function_method 0x6A0050 0xC1B340 num_params 1 pop 0 'CRED445' 10@
    0AA5: call 0x718600 2 pop 2 10@ "...Pickup distance: ~1~ meters..."
    0AA8: call_function_method 0x6A0050 0xC1B340 num_params 1 pop 0 'CRED444' 11@
    0AA5: call 0x718600 2 pop 2 11@ "~N~...Pickup ID : ~1~..."
    0AA8: call_function_method 0x6A0050 0xC1B340 num_params 1 pop 0 'CRED444' 12@
    0AA5: call 0x718600 2 pop 2 12@ "~N~...Pickup Model : ~1~..."
    wait 1000

I have "variable problem" with this script some help? Error: Variable member=21661 is not declared as an array.
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,690
Reaction score
103
Yeah how can i do it?
I never have that problem
You read the opcode and make sure the parameters are in the correct formats. For 0B34. Basically wherever that was copy and pasted from (probably here), changes to the forums messaging bbcode and all that stuff was changed and fucked up the '@' in codes replacing them with the "[member]" crap, therefore there will be invalid params. This will probably be throughout the entire script no doubt.

You really ought to go to start with the basics, copy and pasting is fine but you still need to know how to manipulate the code to some extent.
 

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
294
Reaction score
36
Location
Srbija
You read the opcode and make sure the parameters are in the correct formats. For 0B34. Basically wherever that was copy and pasted from (probably here), changes to the forums messaging bbcode and all that stuff was changed and fucked up the '@' in codes replacing them with the "[member]" crap, therefore there will be invalid params. This will probably be throughout the entire script no doubt.

You really ought to go to start with the basics, copy and pasting is fine but you still need to know how to manipulate the code to some extent.

Fucking coding can i send you all codes and you try to do stufs but if you can't i understand you, neither should i XD
 
Status
Not open for further replies.
Top