Problem string with a space!

Статус
В этой теме нельзя размещать новые ответы.

Allex994

Новичок
Автор темы
13
0
Hello, i have problem with string
I use:


Код:
0AD4: $NOT_USED = 6@ format "Event started {FFAF00}%s{00C0FF}, for enter /gotoevent!" 00C0FF 7@v

0af8: chat "EventEnter{f2f3f4} Auto {00C0FF}GotoEvent{f2f3f4} system activated for{FFAF00} %s!" -1 7@v

Event name is: "event NRG-500 race"
Problem is: String only load "event" how to recognize entire text with space and (-) ......
Thanks a lot, sorry for my bad english!


 
Последнее редактирование:

Allex994

Новичок
Автор темы
13
0
Example event name is: event Free fall
Example: {FFAF00}%s{00C0FF} = {FFAF00}event Free fall{00C0FF}

In chat it shows me only: event
{FFAF00}%s{00C0FF} = {FFAF00}event{00C0FF}

I need it: Free fall
When i remove v on 7@ game crash!
Sorry for my bad eng! xD

Код:
:Auto_Event
wait 0
0AC8: 6@ = allocate_memory_size 145
0ac8: 7@ = 100
0AB1: call @SampCetBaza 1 id 99 to 6@
    if
    0AD4: $NOT_USED = 6@ format "EVENT - Started {FFAF00}%s{00C0FF}, type /gotoevent !" 00C0FF 7@v
    then
          0af8: chat "|| SyS - AGEvent ||{f2f3f4} Auto{00C0FF} GotoEvent %s !" 0x00C0FF 7@v
          0AF9: samp say_msg "/gotoevent"
          end
          wait 0
          while true
          if
                  not key_down 109
          then
                  wait 0
                  jump @Auto_Event
          end                 
          if
                  key_down 109
          then
                  wait 0
                  print "Turn off" 3500
                  0AC9: free_allocated_memory 6@
                  0AC9: free_allocated_memory 7@
                  jump @AutoCMDSyS_Pokrenuti_1
          end
 
Последнее редактирование:

Allex994

Новичок
Автор темы
13
0
Hello mgmoldova, i have another problem.

Sometimes event have two "names" example: 'event NRG-500' now i have three strings
%s %s %s - third string it makes me a problem, when event name have two "names/string"
Is it possible to stop third string to not go across if they do not exist three sentences!

Example:
{FFAF00}%s %s %s{00C0FF} = event Free fall - this is good!
{FFAF00}%s %s %s{00C0FF} = event FreeFall{00C0FF}, - this problem occurs to me!
How to stop last string to go further, when text have two sentences!

Thanks a lot !
 
Последнее редактирование:
Статус
В этой теме нельзя размещать новые ответы.