22.05.2014, 18:27
Hey there. Is there anyone who can give me an example of I can use sscanf to do this instead of explode function ?
I'm not that good with sscanf,I'm still learning how to make use of it.
Any help is much appreciated.
pawn Код:
stock AssignPlayerTickets(playerid, tickets[])
{
new tmp[MAX_PLAYER_TICKETS][32];
explode(tmp, tickets, "|");
for(new i = 0; i < MAX_PLAYER_TICKETS; i ++)
{
PlayerInfo[playerid][pTickets][i] = strval(tmp[i]);
}
}
Any help is much appreciated.