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(playerid, COLOR_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