Help with varibles..
#3

Quote:
Originally Posted by Yaz94
Посмотреть сообщение
My thread got deleted..

I don't think you're understanding what I am trying to do..
I will explain exactly now.

if(gTeam[playerid] == TEAM_COP && GetPlayerSkin(playerid) != 286)
{
Not sure what to put here
}
if(gTeam[playerid] == TEAM_RAPIST)
{
Not sure what to put here
}
format(string,sizeof(string),"%s", skill);
TextDrawSetString(SkillTD,string);

IN PHP IT WOULD LOOK SOMETHING LIKE THIS
if(gTeam[playerid] == TEAM_COP && GetPlayerSkin(playerid) != 286)
{
$skill = "Cop";
}
if(gTeam[playerid] == TEAM_RAPIST)
{
$skill = "Rapist";
}
Why would you want to create another variable that isn't needed? You already have gTeam which can determine what job/skill they have.
Reply


Messages In This Thread
Help with varibles.. - by Yaz94 - 07.05.2013, 01:35
Re: Help with varibles.. - by arakuta - 07.05.2013, 01:39
Re: Help with varibles.. - by [ABK]Antonio - 07.05.2013, 01:47

Forum Jump:


Users browsing this thread: 1 Guest(s)