Jump to content

[Problema] Sanny builder


UHTRED
 Share

Recommended Posts

Descriere problema: Cand vreau sa editez/creez un fisier .cs dupa ce-mi termin treaba cu el si dau F6 sau Compile arata tot normal ca s-a executat corect, dupa daca redeschid fisierul in sanny toate caracterele se convertesc in UPPER CASE
Poze/video(optional): - 

Cod: de exemplu am codul asta in sanny:

Quote
{$CLEO .cs}

0000:
repeat
wait 0
until 0AFA: 

if 8AF7: get_samp_base_to 0@
then 
    0A93: end_custom_thread
end
repeat 
    wait 400
until 0AFA: is_samp_structures_available 

0B34: samp register_client_command "fr" to_label @fr

:looper
wait 0 
jump @looper //To avoid crash

:fr
SAMP.IsCommandTyped(20@)
if 0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/frisk %s" 1@
    0AF9: samp say_msg "/confiscate %s drugs" 1@
else
    chatmsg "Syntax: /fr <id>" -1
end
SAMP.CmdRet

 

Iar duca Compile si dupa ce redeschid fisierul sau intra pe joc asta e codul
 

Quote

{$CLEO .cs}

0000:
repeat
wait 0
until 0AFA: 

if 8AF7: get_samp_base_to 0@
then 
    0A93: end_custom_thread
end
repeat 
    wait 400
until 0AFA: is_samp_structures_available 

0B34: samp register_client_command "FR" to_label @FR

:LOOPER
wait 0 
jump @LOOPER //To avoid crash

:FR
SAMP.IsCommandTyped(20@)
if 0AD4: 20@ = scan_string 20@ format "%D" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/FRISK %S" 1@
    0AF9: samp say_msg "/CONFISCATE %S DRUGS" 1@
else
    chatmsg "SYNTAX: /FR <ID>" -1
end
SAMP.CmdRet

 

Alte precizari: -
 

Edited by South UHTRED
Link to comment
Share on other sites

Salut, intra in Sanny Builder 3 -> Tools -> options -> formats -> Case converting si selectezi As Is.

 

image.png

 

Tu ai selectat UPPER, aia e valoarea default a sanny builder-ului din ceva motiv

Salut @ South UHTRED , intra in Sanny Builder 3 -> Tools -> options -> formats -> Case converting si selectezi As Is.

 

image.png

 

Tu ai selectat UPPER, aia e valoarea default a sanny builder-ului din ceva motiv

Link to comment
Share on other sites

  • Nic locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.