Page 1 of 1

need some advice

Posted: Sat Feb 10, 2007 9:28 am
by mexykanu
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

Posted: Sat Feb 10, 2007 12:31 pm
by Krazy
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.

Posted: Sat Feb 10, 2007 1:46 pm
by mexykanu
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 ?

Posted: Sat Feb 10, 2007 8:22 pm
by Striker

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...
}

Posted: Sun Feb 11, 2007 10:49 am
by mexykanu
10x
i used equali(array,value)