Raised This Month: $ Target: $400
 0% 

What did i do wrong? Help me with this script


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 01-25-2005 , 15:00  
Reply With Quote #5

Still dont work! Maybe the whole script is completely wrong? And is the spaces very important? Isnt it 4 spaces betwen new commands/lines??
---EDIT---
I tested compiling it at the compiler link on amxmodx.org. There i got this message:
"Read the errors above. Your plugin failed to compile. Make sure it is has the correct #includes."
Do i have right includes?

posting again what i got now:
Code:
#include <amxmodx> #include <amxmisc> #include <fun> new PLUGIN[]="Change Name" new AUTHOR[]="XunTric" new VERSION[]="1.0" public plugin_init() {     register_plugin(Change Name, 1.0, XunTric)     register_concmd("amx_name", "cmd_name", ADMIN_SLAY, " ") } public cmd_name(id, level, cid) {     if (!cmd_acces(id, level, cid, 3))     return PLUGIN_HANDLED     new Arg1[24]     new Arg2[4]     read_argv(1, Arg1, 23)     read_argv(2, Arg2, 3)     new Name = str_to_num (Arg2)     if (arg[0] == '@')     {         new Team = 0         if (equali(arg[1], "CT"))         {             Team = 2         } else if (equali(Arg1[1], "T")) {             Team = 1         }         new players[32}, num         get_players(players, num)         new i         for (i=0; 1<num; 1++)         {             if (!Team)             {                 set_user_name(players[i], Name)             } else {                 if (get_user_team(players[i]) == Team)                  {                      set_user_name(players[i], Name)                 }                 }         }         } else {                 new player = cmd_target(id, arg1, 1)         if (!player)         {             console_print (id, "Sorry, player %s could not be found or targetted!", Arg1)             return PLUGIN_HANDLED             } else {             set_user_name(player, Name)         }           return PLUGIN_HANDLED     }
XunTric is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:18.


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