/grove and /ballas
#3

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;
     }
Reply


Messages In This Thread
/grove and /ballas - by Armando B - 02.08.2012, 15:42
Re: /grove and /ballas - by [MM]RoXoR[FS] - 02.08.2012, 15:51
Re: /grove and /ballas - by sidney123 - 02.08.2012, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)