Raised This Month: $ Target: $400
 0% 

Eh help array prob :(


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
vbSteve
Junior Member
Join Date: Jun 2006
Old 06-21-2006 , 07:41   Eh help array prob :(
Reply With Quote #1

Eh? How do I make this array to work?
(I'm used to Visual Basic language)


Code:
#include <amxmodx> #include <amxmod> #include <amxmisc> #include <engine> #include <fun> #define PLUGIN "HP Mod" #define VERSION "1.23" #define AUTHOR "mCoDev Systems" #define MAX_PLAYERS 33 new portusCoords[MAX_PLAYERS][3]; // Portus coordinates TO public plugin_init() {     register_clcmd("say /setportus", "setPortus")// Set teleport TO origins     register_clcmd("hpmod_setportus", "setPortus"); // Set teleport TO origins     register_clcmd("say /goportus", "goPortus");    // Teleport the user     register_clcmd("hpmod_goportus", "goPortus");   // Teleport the user } public setPortus(id){     if(is_user_alive(id)){         // Set coordinates TELEPORT_EXIT         get_user_origin(id, portusCoords[id]);         client_print(id, print_chat, "[HP Mod] Set portus to (%i, %i, %i)", portusCoords[id][1], portusCoords[id][2], portusCoords[id][3]);     }         return PLUGIN_HANDLED; } public goPortus(id){     if(is_user_alive(id)){         // Go to teleport coords:         set_user_origin(id, portusCoords[id]);     }     return PLUGIN_HANDLED; }

Code:
C:\Small Compiler>compile amxx_wizard.cpp
Small compiler 2.6.0            Copyright (c) 1997-2004, ITB CompuPhase

amxx_wizard.cpp(233) : error 032: array index out of bounds (variable "portusCoo
rds")

1 Error.
vbSteve 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 08:00.


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