Help me now ???please
#1

how can you change the life of a player spawn?
Reply
#2

i dont understand what you need....
Reply
#3

I want to know for example I would give a player in 1000 life can I do? and how is the code pawno
Reply
#4

i think you ask for player classes...Than you need to check this

https://sampwiki.blast.hk/wiki/AddPlayerClass
Reply
#5

he is asking how to set the health :

here is it , add under OnPlayerSpawn :
Код:
SetPlayerHealth(playerid,10000);
Reply
#6

Quote:
Originally Posted by [AC
Etch ]
he is asking how to set the health :

here is it , add under OnPlayerSpawn :
Код:
SetPlayerHealth(playerid,10000);
yes but where do I insert
Reply
#7

Quote:
Originally Posted by justinkomnuga
Quote:
Originally Posted by [AC
Etch ]
he is asking how to set the health :

here is it , add under OnPlayerSpawn :
Код:
SetPlayerHealth(playerid,10000);
yes but where do I insert
Under OnPlayerSpawn
Reply
#8

Quote:
Originally Posted by [EFS
]
Quote:
Originally Posted by justinkomnuga
Quote:
Originally Posted by [AC
Etch ]
he is asking how to set the health :

here is it , add under OnPlayerSpawn :
Код:
SetPlayerHealth(playerid,10000);
yes but where do I insert
Under OnPlayerSpawn
eror
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(123) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.
?whats is the problem
Reply
#9

That is not problem problem is what your lines not same.....Just put on top of your script this code...

Код:
#pragma tabsize 0
For more info about that warning look here > https://sampwiki.blast.hk/wiki/Errors_Li...tion_.28217.29
Reply
#10

Please stop telling people to use pragma, that doesn't fix the issue. Just indent your code properly, like:
pawn Код:
public blablabla(playerid)
{
    //THIS IS AN INDENT
    //one tab!
    if(condition1 == 1)
    {
        //this is another indent
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)