Will this work?
#1

I've got this:
pawn Код:
if(GetPlayerSkin(playerid) == 161 || 162 || 32 || 34 || 31 || 200 || 201 || 160 || 159 || 158)
    GameTextForPlayer(playerid, "~g~Farmer~n~", 10000, 6);
    GameTextForPlayer(playerid, "~y~Objective: Protect the tractor", 10000, 3);
and my question is if it will work.
Reply
#2

Код:
if(GetPlayerSkin(playerid) == 161 || 162 || 32 || 34 || 31 || 200 || 201 || 160 || 159 || 158)
This is not correct.
Is should be
Код:
if(GetPlayerSkin(playerid) == 161 || GetPlayerSkin(playerid) == 162 || GetPlayerSkin(playerid) == 32 || GetPlayerSkin(playerid) == 34 || GetPlayerSkin(playerid) == 31 || GetPlayerSkin(playerid) == 200 || GetPlayerSkin(playerid) == 201 || GetPlayerSkin(playerid) == 160 || GetPlayerSkin(playerid) == 159 || GetPlayerSkin(playerid) == 158)
Reply
#3

pawn Код:
if(GetPlayerSkin(playerid) == 161 || GetPlayerSkin(playerid) == 162 || GetPlayerSkin(playerid) == 32 || GetPlayerSkin(playerid) == 34 || GetPlayerSkin(playerid) == 31 || GetPlayerSkin(playerid) == 200 || GetPlayerSkin(playerid) == 201 || GetPlayerSkin(playerid) == 160 || GetPlayerSkin(playerid) == 159 || GetPlayerSkin(playerid) == 158)
{
  GameTextForPlayer(playerid, "~g~Farmer~n~", 10000, 6);
  GameTextForPlayer(playerid, "~y~Objective: Protect the tractor", 10000, 3);
}
Reply
#4

Hmm I've tried and it doesn't show the first GameTextForPlayer..
Reply
#5

Of course it doesn't, since you can't use 2 GameText's at the same time.
Reply
#6

Quote:
Originally Posted by Ettans
Of course it doesn't, since you can't use 2 GameText's at the same time.
Hmm. Didn't know that
Reply
#7

You can use textdraws instead, as you can have multiple textdraws showing simultaneously.
Reply
#8

Or you just put the gametext's together
Reply
#9

Quote:
Originally Posted by ♣ Joker ♠
Or you just put the gametext's together
Yeah.

pawn Код:
GameTextForPlayer(playerid, "~g~Farmer~n~~y~Objective: Protect the tractor", 10000, 6);
Reply
#10

Quote:
Originally Posted by Ettans
Quote:
Originally Posted by ♣ Joker ♠
Or you just put the gametext's together
Yeah.

pawn Код:
GameTextForPlayer(playerid, "~g~Farmer~n~~y~Objective: Protect the tractor", 10000, 6);
Yeah did that already
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)