why dont these work ? any clues ?
#1

Код:
if(score == 50)   {
    if(gTeam[playerid] == SOLDIER)
    {
      gTeam[playerid] = SNIPER;
      SetPlayerSkin(playerid, 252);
      SendClientMessage(playerid, COLOR_RED, "Now u are a Sniper.");
      new string[MAX_PLAYER_NAME + 34];
      new name[MAX_PLAYER_NAME];
      GetPlayerName(playerid, name, MAX_PLAYER_NAME);
      format(string, sizeof(string), "%s has now become a Sniper, name);
      SendClientMessageToAll(COLOR_RED, string);
    }
  }
Код:
if(gTeam[playerid] == BALLA && gTeam[killerid] == TEAM_WEST)
	{
	GameTextForPlayer(playerid, "~w~You were taken and are now you are a %s", 3,4500);
	SetSpawnInfo( playerid, 1,137,268.7510,1882.7604,-30.0938, 269.15,4,1,23,50,0,0);
	new name1[128];
	format(name1, sizeof(name1), "[MESSAGE] %s has been captured by %s and is now a %s", PlayerName(playerid));
	SendClientMessageToAll(RED, name1);
	SendClientMessage(playerid, RED, "Your main objective is to go conquer the eenmy base!");
	SetPlayerTeam(playerid,SOLDIER);
	}
Код:
SetPlayerScore(killerid,1);
	SetPlayerScore(playerid,-1);
Why dont the first code and hte second code work ? .. and the 3rd one it just happens once and the score doesnt go up .. and doesnt go down.
Reply


Messages In This Thread
why dont these work ? any clues ? - by MrIncredible - 01.03.2010, 01:46
Re: why dont these work ? any clues ? - by MrIncredible - 01.03.2010, 01:58
Re: why dont these work ? any clues ? - by MrIncredible - 01.03.2010, 02:53
Re: why dont these work ? any clues ? - by -Rebel Son- - 01.03.2010, 02:57

Forum Jump:


Users browsing this thread: 1 Guest(s)