problem help +rep - 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)
+--- Thread: problem help +rep (
/showthread.php?tid=310112)
problem help +rep -
N0FeaR - 10.01.2012
i system there you fall under 50 hp but not working
here is the code
http://pastebin.com/hnW4cmQD i get no erros but when you have under 50hp you not fall
Re: problem help +rep -
Marshall32 - 10.01.2012
Explain what you need better.
Re: problem help +rep -
N0FeaR - 10.01.2012
I need nothing -.- there are problem whit the code
edit:Nothing happend when you have under 50 hp when you get under 50 hp you you dont fall too the ground
Re: problem help +rep -
Tanush123 - 10.01.2012
try
http://pastebin.com/raw.php?i=f0qiK6QQ
Re: problem help +rep -
Mrki_Drakula - 10.01.2012
Are you sure thats goin under OnPlayerSpawn? Try under OnPlayerUpdate.
Re: problem help +rep -
N0FeaR - 10.01.2012
Quote:
Originally Posted by Tanush123
|
same problem with this too ;(
Re: problem help +rep -
Mrki_Drakula - 11.01.2012
Can you post your CheckPH stock?
And somewhere is
PH and somewhere is
HP
Re: problem help +rep -
N0FeaR - 11.01.2012
Here you have
Код:
}
CheckPH(playerid)
{
if(PlayerInfo[playerid][pPnumber] == 0) {return 0;}
new PHList[256];
new number;
new string[512];
if(!fexist("PHList.cfg")) makefamily("PHList.cfg");
new File: file = fopen("PHList.cfg", io_read);
if (file)
{
while(fread(file, string))
{
strmid(PHList, string, 0, strlen(string)-2, 255);
number = strval(PHList);
if (number == PlayerInfo[playerid][pPnumber])
{
fclose(file);
return 1;
}
}
fclose(file);
new File: file2 = fopen("PHList.cfg", io_append);
format(string, sizeof(string), "%d\r\n", PlayerInfo[playerid][pPnumber]);
fwrite(file2, string);
fclose(file2);
printf("New number added to PHList.cfg, ph:%d player:%s", PlayerInfo[playerid][pPnumber], GetPlayerNameEx(playerid));
return 0;
}
return 1;
}
Re: problem help +rep -
Mrki_Drakula - 11.01.2012
Wait a second...Let me try something.
Re: problem help +rep -
Mrki_Drakula - 11.01.2012
And what does exactly not work?