AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Fix for this peace of code? (https://forums.alliedmods.net/showthread.php?t=28588)

hip_hop_x 05-18-2006 09:45

Fix for this peace of code?
 
Code:
public plugin_init() { register_clcmd("say /jucatori","cmd_anunt") } public cmd_anunt(id) {         new jucatori = get_playersnum()          set_hudmessage(200, 100, 40, -1.0, 0.15, 0, 1.0, 5.0, 0.1, 0.2, -1)     show_hudmessage(0, "In server sunt %s", jucatori) }
The problem is cause when i press /jucatori (in game) nothing happend.

Please fix my plugin.

Greenberet 05-18-2006 09:54

Code:
 public plugin_init() {     register_plugin( "Jucatori", "1.0", "hip hop" )     register_clcmd("say /jucatori","cmd_anunt") } public cmd_anunt(id) {     new jucatori = get_playersnum()     set_hudmessage(200, 100, 40, -1.0, 0.15, 0, 1.0, 5.0, 0.1, 0.2, -1)     show_hudmessage(0, "In server sunt %d", jucatori)   }

hip_hop_x 05-18-2006 10:00

Thank you. I will try it.


All times are GMT -4. The time now is 16:31.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.