How can i check this?
#2

You want to make a multi-dimensional array and do some string comparison? Well here's a simple example.

pawn Код:
new Lent[MAX_PLAYERS][128]; // This initializes a multi-dimensional array with one cell of 500 length and a second cell with 128 length.
pawn Код:
if(strcmp(Lent[playerid],"Torran0",true) == 0) // Use strcmp to compare strings
{
    // The string stored in the playerid's cell in the Lent array is "Torran0"
}
Reply


Messages In This Thread
How can i check this? - by iTorran - 11.11.2010, 13:25
Re: How can i check this? - by JaTochNietDan - 11.11.2010, 13:35
Re: How can i check this? - by iTorran - 11.11.2010, 13:38
Re: How can i check this? - by JaTochNietDan - 11.11.2010, 13:40
Re: How can i check this? - by iTorran - 11.11.2010, 13:43
Re: How can i check this? - by JaTochNietDan - 11.11.2010, 13:44
Re: How can i check this? - by iTorran - 11.11.2010, 13:46
Re: How can i check this? - by iTorran - 11.11.2010, 14:44
Re: How can i check this? - by iTorran - 11.11.2010, 15:05
Re: How can i check this? - by Hiddos - 11.11.2010, 15:05

Forum Jump:


Users browsing this thread: 3 Guest(s)