• Welcome to Vice City Multiplayer.
 

GUPS question

Started by saberman, February 10, 2011, 01:44:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

saberman

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.

Aldo


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;
}
Paruni VC:MP Leader
Join Today: 178.63.52.144:5193
The Only Pawn Server With Clan Protection

saberman

Thanks aldo now how do I add a /c command?????

Aldo

Paruni VC:MP Leader
Join Today: 178.63.52.144:5193
The Only Pawn Server With Clan Protection


BIG[H]

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;
My Guru FORUM MUST VISITmegavcmp.freeforums.org

BIG[H] = BIG HaLL

Aldo

Quote from: BIG[H] on February 11, 2011, 07: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
Paruni VC:MP Leader
Join Today: 178.63.52.144:5193
The Only Pawn Server With Clan Protection


saberman

The topic is solved, the problem was with the hoster of the server.