31.10.2015, 22:34
How to dissect code, for beginners. Step 1: locate the message that gets sent. Step 2: locate the corresponding if-else block.
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.
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.");
}