problem help +rep
#1

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
Reply
#2

Explain what you need better.
Reply
#3

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
Reply
#4

try http://pastebin.com/raw.php?i=f0qiK6QQ
Reply
#5

Are you sure thats goin under OnPlayerSpawn? Try under OnPlayerUpdate.
Reply
#6

Quote:
Originally Posted by Tanush123
Посмотреть сообщение
same problem with this too ;(
Reply
#7

Can you post your CheckPH stock?
And somewhere is PH and somewhere is HP

Код:
CheckPH
HPTimer
Reply
#8

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;
}
Reply
#9

Wait a second...Let me try something.
Reply
#10

And what does exactly not work?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)