sscanf2 problem
#1

well is not only me there is other people having this problem two

Problem
whe in ther server there are 3 players all CMDS work fine
but when more then 3 playeer enter then the CMDS dont work anymore
EXAMPLE (more then 3 players joined)
if i use like SetPlayerMoney 5 32425 it will give ID 0 32425
any solutions or anything ?

Server version 0.3C R5

One of non working Command's
pawn Код:
COMMAND:sethp(playerid, params[])
{
        if(PlayerInfo[playerid][PlayerAdmin] < HP_LEVEL) return SendClientMessage(playerid,COLOR_RED, "You Cant Use This Command !!!");
        new targetid,intgr;
        if(sscanf(params,"ui", targetid,intgr)) return SendClientMessage(playerid, COLOR_WHITE, ""WHITE"Usage: "GREEN"/sethp "WHITE"[playerid] "WHITE"[ammount]");
        if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_WHITE, "Invalid Player ID"RED"(Player Is Not Connected)!");
        SetPlayerHealth(targetid, intgr);
        return 1;
}
Reply
#2

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
well is not only me there is other people having this problem two

Problem
whe in ther server there are 3 players all CMDS work fine
but when more then 3 playeer enter then the CMDS dont work anymore
EXAMPLE (more then 3 players joined)
if i use like SetPlayerMoney 5 32425 it will give ID 0 32425
any solutions or anything ?
No, but i have got this warning plenty of times
pawn Код:
sscanf warning: Format specifier does not match parameter count.
Reply
#3

Quote:
Originally Posted by cruising
Посмотреть сообщение
No, but i have got this warning plenty of times
pawn Код:
sscanf warning: Format specifier does not match parameter count.
yh still i got that two that doest solve the problem !
Reply
#4

Omg don't you read?
sscanf is bugged with 0.3d
Reply
#5

Quote:
Originally Posted by FireCat
Посмотреть сообщение
Omg don't you read?
sscanf is bugged with 0.3d
i know XD
im running 0.3C R5 !
Reply
#6

Show us one of the non-working commands.
Reply
#7

pawn Код:
COMMAND:sethp(playerid, params[])
{
        if(PlayerInfo[playerid][PlayerAdmin] < HP_LEVEL) return SendClientMessage(playerid,COLOR_RED, "You Cant Use This Command !!!");
        new targetid,intgr;
        if(sscanf(params,"ui", targetid,intgr)) return SendClientMessage(playerid, COLOR_WHITE, ""WHITE"Usage: "GREEN"/sethp "WHITE"[playerid] "WHITE"[ammount]");
        if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_WHITE, "Invalid Player ID"RED"(Player Is Not Connected)!");
        SetPlayerHealth(targetid, intgr);
        return 1;
}
Reply
#8

Are you sure you are using sscanf2 plugin? I get this problem with the old sscanf, but not with sscanf2 :/
Reply
#9

Quote:
Originally Posted by DreamOnIt
Посмотреть сообщение
Are you sure you are using sscanf2 plugin? I get this problem with the old sscanf, but not with sscanf2 :/
i am 100% sure i deleyed scanf and got the new again still the same
Reply
#10

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
i am 100% sure i deleyed scanf and got the new again still the same
Maybe recompiling the library?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)