Author Topic: GUPS question  (Read 4224 times)

0 Members and 1 Guest are viewing this topic.

Offline saberman

  • Street Thug
  • *
  • Posts: 22
    • View Profile
GUPS question
« on: February 10, 2011, 04:44:19 pm »
I want to ask how do I add a a /c command and how do I add like (strcmp(cmd, "back", true) == 0) {
SendClientMessageToAll(COLOR_GREEN, playerid & "is back")???? Waiting for a response.
« Last Edit: February 10, 2011, 04:57:17 pm by saberman »

Offline Aldo

  • Wiseguy
  • **
  • Posts: 52
    • View Profile
Re: GUPS question
« Reply #1 on: February 10, 2011, 05:04:07 pm »
Code: [Select]
else if (strcmp(cmd, "back", true) == 0) {
    new name[20], string[128];
    GetPlayerName(playerid, name, 20);
    format(string, sizeof(string), "%s, Is Back!", name);
    SendClientMessageToAll(COLOR_GREEN, string);
    return 1;
}

Offline saberman

  • Street Thug
  • *
  • Posts: 22
    • View Profile
Re: GUPS question
« Reply #2 on: February 11, 2011, 01:17:09 pm »
Thanks aldo now how do I add a /c command?????

Offline Aldo

  • Wiseguy
  • **
  • Posts: 52
    • View Profile
Re: GUPS question
« Reply #3 on: February 11, 2011, 03:51:20 pm »
that is /c  ;D

Offline shivambansal

  • Wiseguy
  • **
  • Posts: 52
  • VC:MP Beta Tester
    • View Profile
Re: GUPS question
« Reply #4 on: February 11, 2011, 05:39:08 pm »
 :D :D

Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: GUPS question
« Reply #5 on: February 11, 2011, 10:47:50 pm »
Quote
   else if (strcmp(cmd, "back", true) == 0) {
       new name[20], string[128];
       GetPlayerName(playerid, name, 20);
          format(string, sizeof(string), "%s, Is Back!", name);
          SendClientMessageToAll(COLOR_GREEN, string);
          return 1;
    }

He is using GUPS so he didn't need
Quote
GetPlayerName(playerid, name, 20);

he can use gPlayers[playerid] :P


Quote
else if (strcmp(cmd, "back", true) == 0) {
       new string[128];
          format(string, sizeof(string), "%s, Is Back!", gPlayers[playerid]);
          SendClientMessageToAll(COLOR_GREEN, string);
          return 1;
Outdoor city server Administrator, FS server owner!

Offline Aldo

  • Wiseguy
  • **
  • Posts: 52
    • View Profile
Re: GUPS question
« Reply #6 on: February 11, 2011, 10:58:23 pm »
Quote
   else if (strcmp(cmd, "back", true) == 0) {
       new name[20], string[128];
       GetPlayerName(playerid, name, 20);
          format(string, sizeof(string), "%s, Is Back!", name);
          SendClientMessageToAll(COLOR_GREEN, string);
          return 1;
    }

He is using GUPS so he didn't need
Quote
GetPlayerName(playerid, name, 20);

he can use gPlayers[playerid] :P


Quote
else if (strcmp(cmd, "back", true) == 0) {
       new string[128];
          format(string, sizeof(string), "%s, Is Back!", gPlayers[playerid]);
          SendClientMessageToAll(COLOR_GREEN, string);
          return 1;

anf if you knew Pawn, you would know GUPS draws on to much memory aka "256" for everything

Offline shivambansal

  • Wiseguy
  • **
  • Posts: 52
  • VC:MP Beta Tester
    • View Profile
Re: GUPS question
« Reply #7 on: February 12, 2011, 09:04:15 am »
yea ;)

Offline saberman

  • Street Thug
  • *
  • Posts: 22
    • View Profile
Re: GUPS question
« Reply #8 on: February 12, 2011, 09:08:12 am »
The topic is solved, the problem was with the hoster of the server.