need some advice

Anything not related to war3 mods

Moderator: Forum Moderator

mexykanu
Rifleman
Posts: 176
Joined: Sun Oct 22, 2006 8:06 am

need some advice

Postby mexykanu » Sat Feb 10, 2007 9:28 am

I've decided to learn pawn and amxx scripting. could someone that knows them give me some pointers: from where to start, how to start, what to do first etc. thanks a lot :)

for now i'm reading parts of the amxx wiki and the pawn docs

User avatar
Krazy
Forum Administrator
Posts: 282
Joined: Wed Jul 06, 2005 9:40 am
Location: Dayton, Ohio
Contact:

Postby Krazy » Sat Feb 10, 2007 12:31 pm

Pages and Forums to read:
http://forums.alliedmods.net/forumdisplay.php?f=78
http://wiki.amxmodx.org/index.php/Categ ... X_Mod_X%29
http://www.amxmodx.org/funcwiki.php

Look through AMXX scripting folder:
"addons\amxmodx\scripting" just look how other people code their plugins and try to read and understand the code.
Website: www.djpsych.com
Image

Need help anything to do with Warcraft 3 Mod, installing other plugins, setting up mySQL, installing PsychoStats, or anything else just PM/email me!

mexykanu
Rifleman
Posts: 176
Joined: Sun Oct 22, 2006 8:06 am

Postby mexykanu » Sat Feb 10, 2007 1:46 pm

i've read almost all of that, but i still have some problems with arrays.. how do i read a text from a array ?

Code: Select all

if g_array == text {


like this ?

User avatar
Striker
Footman
Posts: 106
Joined: Thu Jul 07, 2005 2:40 pm
Location: Duisburg, Germany
Contact:

Postby Striker » Sat Feb 10, 2007 8:22 pm

Code: Select all

new g_array[3]

g_array[0] = "text"
g_array[1] = "text2"
g_array[2] = "text3"


if (g_array[0] == "text")
{
      // text
}
else if (g_array[1] == "text2")
{
      // text2
}
else if (g_array[2] == "text3")
{
      // text3
}
else
{
      // no text...
}

mexykanu
Rifleman
Posts: 176
Joined: Sun Oct 22, 2006 8:06 am

Postby mexykanu » Sun Feb 11, 2007 10:49 am

10x
i used equali(array,value)


Return to “Whatever”

Who is online

Users browsing this forum: No registered users and 1 guest