OnPlayerText - 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: OnPlayerText (
/showthread.php?tid=507237)
OnPlayerText -
Ananisiki - 16.04.2014
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
Re : OnPlayerText -
S4t3K - 16.04.2014
Try to return 0 to OnPlayerText, and to return 1 to your chats.
Or simply
PHP код:
// Admin chat
return SendMessageToAdmins(COLOR_GREEN, adminText);
}
}
// End of admin chat
return SendClientMessage(i, COLOR_WHITE, string);
}
}
}
}
}
return 1;
}
// end of shop
Re: OnPlayerText -
Ananisiki - 16.04.2014
I did return 0 on the end but not helping.... its same
Re : OnPlayerText -
S4t3K - 16.04.2014
Well, have you got a warning at compiling ?
Something like "warning xxx : unrecheable code"
Re: OnPlayerText -
Ananisiki - 16.04.2014
Nop everything compiles fine
Re: OnPlayerText -
Ananisiki - 19.04.2014
Bump
Re: OnPlayerText - Astralis - 19.04.2014
Post your whole OnPlayerText, so we might help you better.
Re: OnPlayerText -
Ananisiki - 19.04.2014
Pretty much i want to keep secret, want me to pm to you?
Re: OnPlayerText -
Konstantinos - 19.04.2014
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.
|