Raised This Month: $ Target: $400
 0% 

Simple Error :(


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
emoD
Junior Member
Join Date: Oct 2007
Old 10-29-2007 , 10:22   Simple Error :(
Reply With Quote #1

Hello, I'm New At AMXX Scripting But I Know C++ Syntax.
I've Tryed To Creat Plugin But There Is Alot Of Errors And I Don't Know What To Do.

Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "DainiusD"
#define MATCH_P 10
new Players[32], Act, I, Player
public plugin_init() {
 register_plugin(PLUGIN, VERSION, AUTHOR)
 
 get_players(Players, Act)
 for (I=0; I<Act; I++)
     Player = Players[I]
     if (Player < MATCH_P) {
      set_hudmessage(0, 255, 0, -1.0, -1.0)
      show_hudmessage(id, "Waiting For Other Players")      
     }
     else if (Player > MATCH_P) {
      set_hudmessage(0, 255, 0, -1.0, -1.0)
      show_hudmessage(id, "Too Many Players On Server")
     }
     else if (Player == Match_P) {
      set_hudmessage(0, 255, 0, -1.0, -1.0)
      show_hudmessage(id, "Players Have Joined Server, Match Starting...")
 }
  return PLUGIN_HANDLED
}
Code:
/home/groups/amxmodx/tmp3/textlReC14.sma(20) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textlReC14.sma(22) : error 017: undefined symbol "id"
/home/groups/amxmodx/tmp3/textlReC14.sma(22) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/textlReC14.sma(22) : error 001: expected token: ";", but found ")"
/home/groups/amxmodx/tmp3/textlReC14.sma(22) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/textlReC14.sma(22) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
Srry For My English.
Could Someone Help Me? Thanks.
emoD 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 01:18.


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