13.03.2012, 18:27
The first SSCANF you can see works, but the second does not at all. It's rather irritating. Could someone give me some pointers as to why it will not work, i've tried everything in the book.
pawn Код:
if(sscanf(params, "s[32]",usage))
{
SendClientMessage(playerid, COLOUR_GREY, "Usage: /trunk [usage]");
SendClientMessage(playerid, COLOUR_GREY, "Usages: Store, Get, View");
}
printf("USAGE: %s", usage);
VehicleSQLID[vehicleid] = MySQL_GetValue(VehicleSQLID[vehicleid], "id", "vehicles");
if(vehicleid == TrunkOpened[playerid])
{
if(!strcmp(usage, "store", true))
{
printf("USAGE: %s", usage);
if(sscanf(usage, "s[24]",item))// This will not send the client messages.
{
SendClientMessage(playerid, COLOUR_GREY, "Usage: /trunk store [item]");
SendClientMessage(playerid, COLOUR_GREY, "Available Items: Weapon, Weed, Cocaine, Money, Armour");
}
printf("USAGE: %s", usage);
printf("ITEM: %s", item);