View Single Post
Old 02/08/2012, 03:53 PM   #3
sidney123
Big Clucker
 
Join Date: Sep 2011
Posts: 104
Reputation: 19
Default Re: /grove and /ballas

From what I see is that

pawn Code:
SetPlayerPos(playerid,,2494.9758,-1685.5616,13.5118);
          SetPlayerPos(playerid,,1938.9037,-1114.6855,27.4523);

Must be:


pawn Code:
SetPlayerPos(playerid,2494.9758,-1685.5616,13.5118);
          SetPlayerPos(playerid,1938.9037,-1114.6855,27.4523);

And that this:
pawn Code:
format(string,sizeof string,"%s Has Joined Grove By Using /grove.",pName);

and

pawn Code:
format(string,sizeof string,"%s Has Joined Ballas By Using /ballas.",pName);

must be

pawn Code:
format(string,sizeof(string),"%s Has Joined Grove By Using /grove.",pName);
format(string,sizeof(string),"%s Has Joined Grove By Using /grove.",pName);

The whole code (fixed the things I saw, correct me if I'm wrong of course):

pawn Code:
if(strcmp(cmdtext, "/grove", true) == 0)
     {
          SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}SERVER: You Have Been Teleported!.");
          new string[64], pName[MAX_PLAYER_NAME];
          GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
          format(string,sizeof(string),"%s Has Joined Grove By Using /grove.",pName);
          SendClientMessageToAll(0xFFFFFFAA,string);
          SetPlayerPos(playerid,2494.9758,-1685.5616,13.5118);
          return 1;
     }
     if(strcmp(cmdtext, "/ballas", true) == 0)
     {
          SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}SERVER: You Have Been Teleported!.");
          new string[64], pName[MAX_PLAYER_NAME];
          GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
          format(string,sizeof(string),"%s Has Joined Ballas By Using /ballas.",pName);
          SendClientMessageToAll(0xFFFFFFAA,string);
          SetPlayerPos(playerid,1938.9037,-1114.6855,27.4523);
          return 1;
     }
__________________
Pacific Roleplay - Creating fun since 2008!




Connect to the server!
Join our Discord server!
sidney123 is offline   Reply With Quote