Making a new function [SOLVED]
Ok this is gonna sound really nubbish, but its the best i can explain what i want to do
Basiaclly i need to make a new function like client_print but make some of it green I have made it, and it almost works, but i need to know how you make it so you can use 2 arguments, but in some cases you can use the 3rd aswell Code:
stock green_print(index, const message[], const message2[])const message[] is a constant message which is shown to all players const message2[] is an optional bit E.g. using 3 arguments green_print(id, "Hello %s", g_tag) E.g. using 2 arguments green_print(id, Hello everyone!") Again apologies for the nubbishness ;) This has been solved by X-olent Thanks a bunch man! :up: |
Re: [help] Making a new function
Code:
stock green_print(index, const fmt[], any:...) |
| All times are GMT -4. The time now is 05:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.