Coding help
#2

pawn Код:
public OnPlayerCommandText(playerid, text[])
{
  if(!strcmp(text, "10-20", true))
  {
    new Float:x, Float:y, Float:z, string[100], name[MAX_PLAYER_NAME];
    GetPlayerPos(playerid, x, y, z);
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s's position: %f, %f, %f", name, x, y, z);
    SendClientMessageToAll(0xFFFFFFAA, string);
    return 0;
  }
  return 1;
}
Reply


Messages In This Thread
Coding help - by Beginnercoder - 02.02.2011, 15:31
Re: Coding help - by Sascha - 02.02.2011, 15:35
Re: Coding help - by Beginnercoder - 02.02.2011, 15:37
Re: Coding help - by randomkid88 - 02.02.2011, 15:42
Re: Coding help - by Beginnercoder - 02.02.2011, 15:57
Re: Coding help - by Beginnercoder - 02.02.2011, 16:22
Re: Coding help - by Unknown123 - 02.02.2011, 16:39
Re: Coding help - by Beginnercoder - 09.02.2011, 17:15
Re: Coding help - by randomkid88 - 09.02.2011, 19:29
Re: Coding help - by Unknown123 - 09.02.2011, 19:33

Forum Jump:


Users browsing this thread: 6 Guest(s)