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
#2

so insted of setplayerteam i put only gTeam[plyerid] = SOLDIER ?

and for the score .. Getplayerscore(killerid,1);
GetplayerScore(playerid,-1); thats how ?
Reply
#3

but when i change the setscore to getscore .. these wornings come up
Код:
.pwn(3853) : warning 202: number of arguments does not match definition
.pwn(3854) : warning 202: number of arguments does not match definition
Reply
#4

Quote:
Originally Posted by MrIncredible
but when i change the setscore to getscore .. these wornings come up
Код:
.pwn(3853) : warning 202: number of arguments does not match definition
.pwn(3854) : warning 202: number of arguments does not match definition
Your missing somthing in the lines, Try re reading the definition of the function your using.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)