20.07.2013, 18:29
Hi all,
I have a problem with my idx variable.
The idx variable counts to 13 while it needs to be 2.
It needs to return:
Can someone correct this?
Thanks Admigo
I have a problem with my idx variable.
The idx variable counts to 13 while it needs to be 2.
pawn Код:
if(!strcmp(cmdtext, "/test", true))
{
HasClothes[playerid]=2;
ClothesItems[playerid][1]=10;
ClothesItems[playerid][2]=20;
while( HasClothes[playerid]==idx )
{
idx ++;
}
for(new i = 0; i < idx; i++)
{
format( string, sizeof string, "slot %d|item id %d",idx,ClothesItems[playerid][idx]);
SendClientMessage( playerid, -1, string );
}
return 1;
}
Код:
slot 1|item id 10 slot 2|item id 20
Thanks Admigo