sscanf parameter problem
#5

Quote:
Originally Posted by MP2
Посмотреть сообщение
Change

uis[32]S( )[32]S( )[32]

to

uis[32]S(None)[32]S(None)[32]
for some reason it request the weapon 2 and 3

pawn Код:
if(ReturnWeaponIDOrName(gWeap1) == -1) return SendClientMessage(playerid, 0xE54500F1, "Sorry, weapon not found.");
    if(!strlen(gWeap2))
    {
       SetPVarInt(playerid, "Weap2", 0);
       SetPVarInt(Player,   "Weap2", 0);
    }
    else
    {
       if(ReturnWeaponIDOrName(gWeap2) == -1) return SendClientMessage(playerid, 0xE54500F1, "Sorry, weapon on slot 2 not found.");
       SetPVarInt(playerid, "Weap2", 1);
       SetPVarInt(Player,   "Weap2", 1);
    }
    if(!strlen(gWeap3))
    {
       SetPVarInt(playerid, "Weap3", 0);
       SetPVarInt(Player,   "Weap3", 0);
    }
    else
    {
       if(ReturnWeaponIDOrName(gWeap3) == -1) return SendClientMessage(playerid, 0xE54500F1, "Sorry, weapon on slot 3 not found.");
       SetPVarInt(playerid, "Weap3", 1);
       SetPVarInt(Player,  "Weap3", 1);
    }
Reply


Messages In This Thread
sscanf parameter problem - by Cypress - 11.07.2012, 08:30
Re: sscanf parameter problem - by MP2 - 11.07.2012, 08:34
Re: sscanf parameter problem - by Cypress - 11.07.2012, 15:39
Re: sscanf parameter problem - by MP2 - 11.07.2012, 15:41
Re: sscanf parameter problem - by Cypress - 11.07.2012, 15:46
Re: sscanf parameter problem - by MP2 - 11.07.2012, 15:49
Re: sscanf parameter problem - by Cypress - 11.07.2012, 15:57
Re: sscanf parameter problem - by Cypress - 11.07.2012, 17:09
Re: sscanf parameter problem - by Cypress - 21.07.2015, 12:05

Forum Jump:


Users browsing this thread: 1 Guest(s)