Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] The Source Code → [ask] code

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 6

1 (edited by Jimmy_Aquarius 08.03.2014 19:25)

Topic: [ask] code

hi, i want to make a code like this:

if (&text[i]== "crew")
  {
    message_send_text(c,message_type_error,c,"You can not see the content in this channel.");
    return 0;
  }

it means, if someone type: /who crew, it will says like it.

anyone can fix my code?

2 (edited by Suite 09.03.2014 17:08)

Re: [ask] code

I dont understand, what do you want?

To some at channel was not visible the player?

Добавлено: 09.03.2014 23:02

if channel == channelname then

3

Re: [ask] code

if (strstart(text,"crew")==0) {
   message_send_text(c,message_type_error,c,"You can not see the content in this channel.");
   return 0;
}

try this code

4

Re: [ask] code

kmc724 wrote:
if (strstart(text,"crew")==0) {
   message_send_text(c,message_type_error,c,"You can not see the content in this channel.");
   return 0;
}

try this code

still doesn't work..

anyone can help ?

5 (edited by Zikoi5 12.03.2014 17:35)

Re: [ask] code

yes, but i can't speak english, and don't understand what u want from me

6

Re: [ask] code

kmc724 wrote:
if (strstart(text,"crew")==0) {
   message_send_text(c,message_type_error,c,"You can not see the content in this channel.");
   return 0;
}

That code is right, but with some edits for /who command:

if (strstart(&text[i], "crew") == 0) {
...
Do not ask for support in PM.

Posts: 6

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 1 guest, 0 registered users

forums.pvpgn.pro → [EN] The Source Code → [ask] code