/getmats problem
#1

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
Reply
#2

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
Reply
#3

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

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......
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)