SA-MP Forums Archive
You are not in a hospital - 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: You are not in a hospital (/showthread.php?tid=563009)



You are not in a hospital - IndependentGaming - 13.02.2015

Hello when i place a buyinsurance point

and i place it in VW 2 it say you are not in a hospital when i type /buyinsurance and i made it like this


Код:
    if(!IsAtDynamicPoint(playerid) && PlayerInfo[playerid][pVW] == 2) {



Re: You are not in a hospital - LeBoyce - 13.02.2015

Assuming this function "IsAtDynamicPoint" checks whether the player is at the right coordinates of your hospital respectively at the insurance point, then the mistake is that your checking if the player is NOT at that coords.

Код:
if(!IsAtDynamicPoint(playerid) && PlayerInfo[playerid][pVW] == 2) {