Display a HUD message from a file
i want to read a sting from an file but i become the error:
Code:
Error: Number of arguments does not match definition on line 18PHP Code:
Code:
fgets |
Re: Display a HUD message from a file
fget(datei, msg, charsmax(msg))
will read 1st line fget(datei, msg, charsmax(msg)) will read 2nd line Then, close the file using : fclose(datei) |
Re: Display a HUD message from a file
ok i have edit is:
get: Code:
Error: Must be a constant expression; assumed zero on line 18Code:
how can i get the string into the variable? |
Re: Display a HUD message from a file
new msg[64]
fgets(datei, msg, charsmax(msg)) fclose(datei) |
Re: Display a HUD message from a file
ok thx and how i can start the function every x minute?
or how can i start a command when the player is joined event?? |
Re: Display a HUD message from a file
What do you want to do exactly ?
You want to retrieve messages from file and showing randomly them every x minutes to a player when he arrives on the server ? |
Re: Display a HUD message from a file
Yes,
I want to show these messages to each player spaced. Do you know the server messages of other games like: "Do not spawnkill" or "Welcome to xy Server" and so on. Amx Mod X displays these messages too. "This server is using Amx Mod X visit amxmodx.org" |
Re: Display a HUD message from a file
If you want to display imessages or scroll messages, see amxx.cfg, no need to use your plugin.
|
Re: Display a HUD message from a file
how can i create an word wrap in a HUD message?
Code: Code:
|
Re: Display a HUD message from a file
use ^n instead of \n
|
| All times are GMT -4. The time now is 01:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.