OnPlayerText
#1

So i have administrator chat in onplayertext, and code under that, but the code under the chat dont work (it is a shop)

if i place the shop code 1st and the administrator chat under it, then the admin chat dont work, can this be because of the returns in end of the code?

pawn Код:
SendMessageToAdmins(COLOR_GREEN, adminText);
            return 0;
        }
    }

// end of the admin chat

                    SendClientMessage(i, COLOR_WHITE, string);
                }
            }

        }
            return 0;
        }
    }
    return 1;
}

// end of shop
Reply
#2

Try to return 0 to OnPlayerText, and to return 1 to your chats.

Or simply

PHP код:

// Admin chat

return SendMessageToAdmins(COLOR_GREENadminText);
        }
    }

// End of admin chat

return SendClientMessage(iCOLOR_WHITEstring);
                }
            }

        }
        }
    }
    return 
1;
}

// end of shop 
Reply
#3

I did return 0 on the end but not helping.... its same
Reply
#4

Well, have you got a warning at compiling ?

Something like "warning xxx : unrecheable code"
Reply
#5

Nop everything compiles fine
Reply
#6

Bump
Reply
#7

Post your whole OnPlayerText, so we might help you better.
Reply
#8

Pretty much i want to keep secret, want me to pm to you?
Reply
#9

You should read the Forum Rules:
Quote:

Do Not Request Private Help - These are public forums where anyone can request free help in public, and to that end people will generally need to be able to see your code to help you. If you are not willing to post what is needed publicly, then you are not participating in a "community" in which everyone can learn from each other. Either post what is needed or post in this topic for private help, and be willing to pay for it. Do not post topics requesting private help via Skype, private message, or other non-public system. This includes contacting people for help without making a topic first.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)