Variables
#2

Para las variables

Prueba si es esto lo que quieres.
pawn Код:
new Array[4][] =
{
{"uno"},
{"dos"},
{"tres"},
{"cuatro"}
};

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/array", true))
    {
    new Rand = random(4);
    SendClientMessage( playerid, 0x000000ff, Array[Rand]);
    }
    return 0;
}
Reply


Messages In This Thread
Variables - by AntonVoychuk - 22.06.2013, 08:53
Respuesta: Variables - by Parka - 22.06.2013, 09:02
Respuesta: Variables - by AntonVoychuk - 22.06.2013, 09:16
Respuesta: Variables - by OTACON - 22.06.2013, 09:23
Respuesta: Variables - by AntonVoychuk - 22.06.2013, 10:48

Forum Jump:


Users browsing this thread: 1 Guest(s)