Code 1 error
#1

Код:
if(IsPlayerConnected(i) && SetPlayerHealth(i, 100.0));
Код:
: error 036: empty statement
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

if(IsPlayerConnected(i) && SetPlayerHealth(i, 100.0))

You don't need to add ';' at the end of an if
Reply
#3

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
if(IsPlayerConnected(i) && SetPlayerHealth(i, 100.0))

You don't need to add ';' at the end of an if
i get alots of error
Reply
#4

Show me the errors then.. also why do you use && SetPlayerHealth(i, 100.0)) What...

What do you want to do..
Reply
#5

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
Show me the errors then.. also why do you use && SetPlayerHealth(i, 100.0)) What...

What do you want to do..
Код:
error 036: empty statement
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#6

Dont use && SetPlayerHealth(i, 100.0)), it won't work, tell me what you want to do..
Reply
#7

If you want to set the players health of I to one hundred then you can do this.
PHP код:
if(IsPlayerConnected(i))
{
       
SetPlayerHealth(i100.0);
       return 
1;

if you wanna knoaw if the players health is 100.0
then do this
PHP код:
if(IsPlayerConnected(i) && GetPlayerHealth(i))
{
   
//initiate killing sequence because we set the player health to 99 for anti health hack.

Reply
#8

IsPlayerConnected is redundant in so many cases because most functions have an inbuilt connection check. You really don't need it nearly as much as you think that you do. If the player isn't connected those function will simply return 0.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)