Help When i type /fb <id> it says crashes

Ry4NN.

Active member
Joined
Sep 26, 2020
Messages
28
Reaction score
2
Location
Romania
When i type /fb <id> it crashes, [/fb <id>] is a shorter command for [/findbiz <id>] but it crashes and idk how to fix it, please a little help? same with [/fh <id>], it is a shorter command for [/findhouse <id>] for an RPG server
 

Attachments

  • comenzi scurte.cs
    25 KB · Views: 8

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
what you have:
PHP:
:cmd_334
SAMP.IsCommandTyped(20@)
if 0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/findbiz %d" 1@ 21@
else
    print "~y~/fb + <id>" 200
end
SAMP.CmdRet()

what it should be if expecting to send id:
PHP:
:cmd_334
SAMP.IsCommandTyped(20@)
if 0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/findbiz %d" 21@
else
    print "~y~/fb + <id>" 200
end
SAMP.CmdRet()

what it should be if expecting to send name:
PHP:
:cmd_334
SAMP.IsCommandTyped(20@)
if 0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/findbiz %s" 1@
else
    print "~y~/fb + <id>" 200
end
SAMP.CmdRet()
 

Ry4NN.

Active member
Joined
Sep 26, 2020
Messages
28
Reaction score
2
Location
Romania
what you have:
PHP:
:cmd_334
SAMP.IsCommandTyped(20@)
if 0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/findbiz %d" 1@ 21@
else
    print "~y~/fb + <id>" 200
end
SAMP.CmdRet()

what it should be if expecting to send id:
PHP:
:cmd_334
SAMP.IsCommandTyped(20@)
if 0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/findbiz %d" 21@
else
    print "~y~/fb + <id>" 200
end
SAMP.CmdRet()

what it should be if expecting to send name:
PHP:
:cmd_334
SAMP.IsCommandTyped(20@)
if 0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/findbiz %s" 1@
else
    print "~y~/fb + <id>" 200
end
SAMP.CmdRet()
thanks!
 
Top