Hi, for one of my cleo, I need a function in which you enter a part of the player name then it return the samp player ?
Like /[cmd] Opcode_E
Returns Player Opcode_Exe and do things after
I tried with:
But it give me error. What could I do ?
Like /[cmd] Opcode_E
Returns Player Opcode_Exe and do things after
I tried with:
Code:
:command
0B35: samp 31@ = get_last_command_params
if
0AD4: 0@ = scan_string 31@ format "%s" 1@
then
for 25@ = 0 to 400 step 1
26@ = samp.GetPlayerNickname(25@)
if
0C21: stricmp string1 26@ 1@ string2
then
// Do things here
end
end
end
0B43: cmd_ret
But it give me error. What could I do ?