SA-MP Forums Archive
Help me now ???please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me now ???please (/showthread.php?tid=139541)



Help me now ???please - justinkomnuga - 05.04.2010

how can you change the life of a player spawn?



Re: Help me now ???please - DarkPower - 05.04.2010

i dont understand what you need....


Re: Help me now ???please - justinkomnuga - 05.04.2010

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


Re: Help me now ???please - DarkPower - 05.04.2010

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

https://sampwiki.blast.hk/wiki/AddPlayerClass


Re: Help me now ???please - aircombat - 05.04.2010

he is asking how to set the health :

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



Re: Help me now ???please - justinkomnuga - 05.04.2010

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


Re: Help me now ???please - DarkPower - 05.04.2010

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


Re: Help me now ???please - justinkomnuga - 05.04.2010

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


Re: Help me now ???please - DarkPower - 05.04.2010

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


Re: Help me now ???please - biltong - 05.04.2010

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;
}