Author Topic: Help me!Come in !  (Read 7698 times)

0 Members and 2 Guests are viewing this topic.

Offline KylinZhang

  • Street Thug
  • *
  • Posts: 11
    • View Profile
Help me!Come in !
« on: March 02, 2013, 12:23:08 pm »
i need help !
What can i do? Add to rules this command

plz help me ~

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: Help me!Come in !
« Reply #1 on: March 02, 2013, 12:37:06 pm »
You mean to add a command that give you the server's rules ?
If yes, you have just to add some SendClientMessage to a command:

Code: [Select]
else if(strcmp(cmd, "rules", true) == 0) {
          SendClientMessage(playerid,COLOR_RED,"Here put the first server's rule");
          SendClientMessage(playerid,COLOR_RED,"Here put the second server's rule");
          SendClientMessage(playerid,COLOR_RED,"Here put the third server's rule");
return 1;
}

If you want to add more than 3 rules, just add more SendClientMessage after the last.

SendClientMessage function:
Code: [Select]
SendClientMessage(playerid,color,text);
playerid = the player ID of that player that will receive the text
color = the color of the text. 
(NOTE:In this version of VC:MP, if you will send a yellow text, and after that a red one, the yellow text will be red too. Is a bug.)
text = the text that will be sent.

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline KylinZhang

  • Street Thug
  • *
  • Posts: 11
    • View Profile
Re: Help me!Come in !
« Reply #2 on: March 02, 2013, 02:54:34 pm »
sorry 2 errors

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: Help me!Come in !
« Reply #3 on: March 02, 2013, 03:49:29 pm »
sorry 2 errors

Errors ? :| In this simple command ? Or I forget how to do a simple command, or you didn't understand.

Show me.

PS: I took a look again at the command and I don't see anything wrong...

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline JaVeD

  • Street Thug
  • *
  • Posts: 46
  • Want scripts? Pm me now! Just for $
    • View Profile
    • Free Host -> Clicky
Re: Help me!Come in !
« Reply #4 on: March 02, 2013, 03:56:22 pm »
lol then i thing he is using sql and putting pawn command haha kylinzhang what server u r using ? i thing he have mistake in color code add this in color COLOR_GREEN
SA:MP Server: 5.231.49.21:7777
Website: www.nse-server.com

Offline dream

  • Street Thug
  • *
  • Posts: 7
    • View Profile
Re: Help me!Come in !
« Reply #5 on: March 03, 2013, 11:59:54 am »
use this:
[pawn]}
else if (strcmp(cmd, "!rules", true) == 0){
          SendClientMessageToAll(COLOR_YELLOW, "put the first rule");
          SendClientMessageToAll(COLOR_YELLOW, "put the second rule");
       return 1;[/pawn]
Sorry for my bad English

Offline KylinZhang

  • Street Thug
  • *
  • Posts: 11
    • View Profile
Re: Help me!Come in !
« Reply #6 on: March 10, 2013, 02:07:16 pm »
use this:
[pawn]}
else if (strcmp(cmd, "!rules", true) == 0){
          SendClientMessageToAll(COLOR_YELLOW, "put the first rule");
          SendClientMessageToAll(COLOR_YELLOW, "put the second rule");
       return 1;[/pawn]


 error 054: unmatched closing brace
error 010: invalid function or declaration
error 010: invalid function or declaration

Offline USA.Ghost

  • Street Thug
  • *
  • Posts: 42
  • Pawn Scripter, IT Professional
    • View Profile
    • NE Clan Official forum
Re: Help me!Come in !
« Reply #7 on: March 10, 2013, 05:33:12 pm »
i need help !
What can i do? Add to rules this command

plz help me ~

WTF WTF WTF????? NOONE KNOWS SUCH A SIMPLE CMD?????????? Here

[pawn]public OnPlayerText(playerid, cmdtext)
{
new cmd;
new idx;
cmd = strtok(cmdtext, idx);
if (strcmp(cmd, "!rules", true) == 0) {
SendClientMessageToAll(0xFFFFFF,"1st line of rules");// 0xFFFFFF = COLOR RED
SendClientMessageToAll(0xFFFFFF,"2nd line of rules");
SendClientMessageToAll(0xFFFFFF,"3rd line of rules");
SendClientMessageToAll(0xFFFFFF,"4th line of rules");
//make more if you want more lines, make less if you want less lines
return 1;
}
return 1;//DO NOT RETURN 0 OR ELSE THE MESSAGE WILL NOT BE SENT(EVERYONE WILL BE MUTED)
}[/pawn]

and you who posted wrong ones, GO LEARN TO SCRIPT!



Click the Click Here button on top to earn free cash by completing offers, surveys, refer others and much more

Click here to join my clan

Offline dream

  • Street Thug
  • *
  • Posts: 7
    • View Profile
Re: Help me!Come in !
« Reply #8 on: March 11, 2013, 05:36:00 pm »
use this:
[pawn]}
else if (strcmp(cmd, "!rules", true) == 0){
          SendClientMessageToAll(COLOR_YELLOW, "put the first rule");
          SendClientMessageToAll(COLOR_YELLOW, "put the second rule");
       return 1;[/pawn]


 error 054: unmatched closing brace
error 010: invalid function or declaration
error 010: invalid function or declaration
have errors? i think you didn't understand.
« Last Edit: March 11, 2013, 05:38:07 pm by dream »
Sorry for my bad English

Offline Fire_Head

  • Street Thug
  • *
  • Posts: 35
    • View Profile
Re: Help me!Come in !
« Reply #9 on: March 17, 2013, 12:23:03 pm »
Man its work

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: Help me!Come in !
« Reply #10 on: March 26, 2013, 08:28:27 am »
Did You put
Code: [Select]
#include <a_vcmp>You Put it ?

Or

You May Put That On "OnPlayerCommandText"
To Find "OnPlayerCommandText"
Press "Ctrl (Control) + F"
And Copy Paste The "OnPlayerCommandText"
And Paste The Code At There.

use this:
[pawn]}
else if (strcmp(cmd, "!rules", true) == 0){
          SendClientMessageToAll(COLOR_YELLOW, "put the first rule");
          SendClientMessageToAll(COLOR_YELLOW, "put the second rule");
       return 1;[/pawn]
Sorry You Wrong
it Should Be :
on Top :
[pawn]#define DGREEN            0x04A36BFF[/pawn]
[pawn]
else if (strcmp(cmd, "!rules", true) == 0){
          SendClientMessageToAll(DGREEN, "put the first rule");
          SendClientMessageToAll(DGREEN, "put the second rule");
       return 1;
}
[/pawn]
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(

Pain

  • Guest
Re: Help me!Come in !
« Reply #11 on: March 26, 2013, 01:38:19 pm »
Did You put
Code: [Select]
#include <a_vcmp>You Put it ?

Or

You May Put That On "OnPlayerCommandText"
To Find "OnPlayerCommandText"
Press "Ctrl (Control) + F"
And Copy Paste The "OnPlayerCommandText"
And Paste The Code At There.

use this:
[pawn]}
else if (strcmp(cmd, "!rules", true) == 0){
          SendClientMessageToAll(COLOR_YELLOW, "put the first rule");
          SendClientMessageToAll(COLOR_YELLOW, "put the second rule");
       return 1;[/pawn]
Sorry You Wrong
it Should Be :
on Top :
[pawn]#define DGREEN            0x04A36BFF[/pawn]
[pawn]
else if (strcmp(cmd, "!rules", true) == 0){
          SendClientMessageToAll(DGREEN, "put the first rule");
          SendClientMessageToAll(DGREEN, "put the second rule");
       return 1;
}
[/pawn]
#define DGREEN
this does not need

Offline USA.Ghost

  • Street Thug
  • *
  • Posts: 42
  • Pawn Scripter, IT Professional
    • View Profile
    • NE Clan Official forum
Re: Help me!Come in !
« Reply #12 on: March 26, 2013, 04:09:59 pm »
Did You put
Code: [Select]
#include <a_vcmp>You Put it ?

Or

You May Put That On "OnPlayerCommandText"
To Find "OnPlayerCommandText"
Press "Ctrl (Control) + F"
And Copy Paste The "OnPlayerCommandText"
And Paste The Code At There.

use this:
[pawn]}
else if (strcmp(cmd, "!rules", true) == 0){
          SendClientMessageToAll(COLOR_YELLOW, "put the first rule");
          SendClientMessageToAll(COLOR_YELLOW, "put the second rule");
       return 1;[/pawn]
Sorry You Wrong
it Should Be :
on Top :
[pawn]#define DGREEN            0x04A36BFF[/pawn]
[pawn]
else if (strcmp(cmd, "!rules", true) == 0){
          SendClientMessageToAll(DGREEN, "put the first rule");
          SendClientMessageToAll(DGREEN, "put the second rule");
       return 1;
}
[/pawn]
#define DGREEN
this does not need

DO NOT BUMP OLD TOPICS



Click the Click Here button on top to earn free cash by completing offers, surveys, refer others and much more

Click here to join my clan

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: Help me!Come in !
« Reply #13 on: March 27, 2013, 11:32:00 am »
This Is Old Topic  :o ?
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(

Pain

  • Guest
Re: Help me!Come in !
« Reply #14 on: March 27, 2013, 01:49:35 pm »
em...