21.01.2017, 14:14
Hey,
how can i fix this? When he repsonses the playerid should get +30. But if his HP is over 70, only set to 100, and not over it. I get these warnings :
The warnings are on line where i use "if(GetPlayerHealth(playerid)>70) and on SetPlayerHealth.
how can i fix this? When he repsonses the playerid should get +30. But if his HP is over 70, only set to 100, and not over it. I get these warnings :
Код:
C:\Users\Safa B\Desktop\Server\gamemodes\gamemode.pwn(19784) : warning 202: number of arguments does not match definition C:\Users\Safa B\Desktop\Server\gamemodes\gamemode.pwn(19790) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664
Код:
case DIALOG_HOTDOG: { if(response) { if(GetPlayerHealth(playerid)>70) { SetPlayerHealth(playerid, 100); } ac_GivePlayerMoney(playerid, -100); SendClientMessage(playerid, HBLAU, "Du hast dir von Phillip fьr 100$ ein Hotdog gekauft."); SetPlayerHealth(playerid, GetPlayerHealth(playerid)+30); } else { SendClientMessage(playerid, GRAU, "Du hast dir kein Hotdog gekauft."); } }
The warnings are on line where i use "if(GetPlayerHealth(playerid)>70) and on SetPlayerHealth.