RP Deliver patiant Problem
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
How to dissect code, for beginners. Step 1: locate the message that gets sent. Step 2: locate the corresponding if-else block.

PHP код:
if(IsAtDeliverPatientPoint(playerid))
{
    
// not important what's in here because it doesn't get executed, anway
}
else
{
    
SendClientMessageEx(playeridCOLOR_GRAD2"You are not near a deliver point - look out near the hospitals.");

Step 3: interpret logic. Clearly, IsAtDeliverPatientPoint is returning false or 0 which causes the "else" branch to execute. Step 4: deduction. The problem is with the function IsAtDeliverPatientPoint.
Thanks, i'll check in to it, otherwise i'll come back for more assistance
Reply


Messages In This Thread
RP Deliver patiant Problem - by eclipses - 31.10.2015, 20:11
Re: RP Deliver patiant Problem - by Vince - 31.10.2015, 22:34
Re: RP Deliver patiant Problem - by eclipses - 31.10.2015, 22:47

Forum Jump:


Users browsing this thread: 1 Guest(s)