Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: saberman on February 10, 2011, 02:44:19 PM

Title: GUPS question
Post by: saberman on February 10, 2011, 02: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.
Title: Re: GUPS question
Post by: Aldo on February 10, 2011, 03:04:07 PM

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;
}
Title: Re: GUPS question
Post by: saberman on February 11, 2011, 11:17:09 AM
Thanks aldo now how do I add a /c command?????
Title: Re: GUPS question
Post by: Aldo on February 11, 2011, 01:51:20 PM
that is /c  ;D
Title: Re: GUPS question
Post by: shivambansal on February 11, 2011, 03:39:08 PM
 :D :D
Title: Re: GUPS question
Post by: BIG[H] on February 11, 2011, 08:47:50 PM
Quoteelse 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
QuoteGetPlayerName(playerid, name, 20);

he can use gPlayers[playerid] :P


Quoteelse if (strcmp(cmd, "back", true) == 0) {
       new string[128];
          format(string, sizeof(string), "%s, Is Back!", gPlayers[playerid]);
          SendClientMessageToAll(COLOR_GREEN, string);
          return 1;
Title: Re: GUPS question
Post by: Aldo on February 11, 2011, 08:58:23 PM
Quote from: BIG[H] on February 11, 2011, 08:47:50 PM
Quoteelse 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
QuoteGetPlayerName(playerid, name, 20);

he can use gPlayers[playerid] :P


Quoteelse 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
Title: Re: GUPS question
Post by: shivambansal on February 12, 2011, 07:04:15 AM
yea ;)
Title: Re: GUPS question
Post by: saberman on February 12, 2011, 07:08:12 AM
The topic is solved, the problem was with the hoster of the server.