This is what I am talking about:
Code: Select all
if (self.clientid == warn[0])
{
self IPrintLnBold(self.clientid);
self IPrintLnBold(warn[0]);
}
1
0
WTF?
How can it be printed while 1 is not equal to 0?
Moderator: Core Staff
Code: Select all
if (self.clientid == warn[0])
{
self IPrintLnBold(self.clientid);
self IPrintLnBold(warn[0]);
}
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
I know that that means is not. But I think you don't understand me.waywaaaard wrote:!=
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
Code: Select all
SayPlayer()
{
tokens = strTok( getDvar("jmp_say"), ":");
if(tokens.size == 2)
{
players = getEntArray("player", "classname");
for(i=0; i<players.size; i++)
{
playernum = players[i] getEntityNumber();
if(playernum == int(tokens[0] ))
{
players[i] iprintlnbold(tokens[1]);
break;
}
}
}
setDvar("jmp_say", "");
}
Code: Select all
SayPlayer()
{
for(;;)
{
setDvar("jmp_say", "");
while(getDvar("jmp_say") == "")
wait 0.05;
tokens = strTok( getDvar("jmp_say"), ":");
if(tokens.size == 2)
{
players = getEntArray("player", "classname");
for(i=0; i<players.size; i++)
{
playernum = players[i] getEntityNumber();
if(playernum == int(tokens[0] ))
{
// This is where you would insert your "if true" code
players[i] iprintlnbold(tokens[1]);
break;
}
}
}
}
}
Users browsing this forum: No registered users and 0 guests