Heymoon Posted November 1, 2021 Share Posted November 1, 2021 Descriere problema: Am facut gen /cnl pentru /cancel, dar cand dau /cnl taxi de ex, nu se ia si ce scriu dupa /cnl. Am incercat si alta varianta cu format %s bla bla dar iau crash. Se poate sa primesc cap-coada tot ce trebuie sa contina scriptul ca sa mearga ok? Poze / Video (optional): Cod (sursa pe baza caruia sa ajutam, daca e cazul): Alte precizări: Link to comment Share on other sites More sharing options...
Nic Posted November 1, 2021 Share Posted November 1, 2021 :cnl 0B35: 0@ if 0AD4: 1@ 0@ format "%s" 2@ // textul introdus de tine then say "/cancel %s" 2@ else chatmsg "Foloseste comanda corect: /cnl <text>" -1 end cmdret Link to comment Share on other sites More sharing options...
Tupi Posted November 1, 2021 Share Posted November 1, 2021 @Heymoon mai ai nevoie de ajutor? @Nic nu mai da keyloggere. Link to comment Share on other sites More sharing options...
Heymoon Posted November 2, 2021 Author Share Posted November 2, 2021 Da.. Am pus fix ce mi-a spus el si comanda nu mergea. Am adaugat 0B34: samp register_client_command "cnl" to_label @cnl iar acum cand scriu /cnl imi apare sintaxa, dar daca scriu /cancel mechanic spre exemplu, iau crash. Link to comment Share on other sites More sharing options...
Tupi Posted November 2, 2021 Share Posted November 2, 2021 {$CLEO} 0000: repeat wait 50 until 0AFA: 0B34: "cnl" @cnl :repeat wait 0 jump @repeat :cnl SAMP.IsCommandTyped(0@) if 0AD4: 33@ = scan_string 0@ format "%s" v$PARAMS then say "/cancel %s" v$PARAMS else chatmsg "USE: /cnl <Serviciu>" -1 end SAMP.CmdRet() Link to comment Share on other sites More sharing options...
Heymoon Posted November 2, 2021 Author Share Posted November 2, 2021 Gata, mersi. Link to comment Share on other sites More sharing options...
Nic Posted November 5, 2021 Share Posted November 5, 2021 Daca mai ai nevoie de ajutor deschide un alt topic. Link to comment Share on other sites More sharing options...
Recommended Posts