SA-MP Forums Archive
/getmats problem - 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: /getmats problem (/showthread.php?tid=423476)



/getmats problem - NinjahZ - 17.03.2013

the command is obvious,the problem is that when I type it,I dont get materials,I get a sendclientmessage
the script will be at the bottom,its the whole CMD /getmats
I need help figuring out why its doing this
error I get is on line 170

EDIT: Is someone gonna help me,or just read it and continue


Re: /getmats problem - Joshman543 - 17.03.2013

You have the same functions twice, therefore it will send the same message regardless.

PHP код:
    if (mypoint == -1)
    {
        
SendClientMessageEx(playeridCOLOR_GREY" You are not at a Materials Pickup!");
        return 
1;
    } 
-Line 155

PHP код:
if (mypoint == -1)
    {
        
SendClientMessageEx(playeridCOLOR_GREY" No Materials Factory found for that Pickup!");
        return 
1;
    } 
-Line 170


Re: /getmats problem - NinjahZ - 17.03.2013

so how do I fix it so I get mats instaid of the error message?


Re: /getmats problem - NinjahZ - 17.03.2013

Quote:
Originally Posted by Joshman543
Посмотреть сообщение
You have the same functions twice, therefore it will send the same message regardless.

PHP код:
    if (mypoint == -1)
    {
        
SendClientMessageEx(playeridCOLOR_GREY" You are not at a Materials Pickup!");
        return 
1;
    } 
-Line 155

PHP код:
if (mypoint == -1)
    {
        
SendClientMessageEx(playeridCOLOR_GREY" No Materials Factory found for that Pickup!");
        return 
1;
    } 
-Line 170
They are seperate....
the line 155 is for if you are out of range from the pickup
the line 170 is what is the problem,I get that error,and no mats,how do I fix that......