30.09.2010, 21:17
How i would need to use scannf
First of all, using zcmd, Y-Less`s sscanf.
So i am converting a command.
In command i need to check if there is paramater as string.
and after that i`m using switch to check that string and if its right then i need to another checking - only for integrier
hope you all understood
So how it should look like:
So should i use sscanf again? or i can somehow put it all togather in one.
So this discussion is not only about ******`s sscanf.
First of all, using zcmd, Y-Less`s sscanf.
So i am converting a command.
In command i need to check if there is paramater as string.
and after that i`m using switch to check that string and if its right then i need to another checking - only for integrier
hope you all understood
So how it should look like:
pawn Код:
command line
{
new name[15];
if(sscanf(params, "s[15]", name)) return blablabla
switch(name)
{
case 'buy':
{
//there i need another check ;S
}
case 'give':
{
// for example there i need 2 integriers need to use sscanf again for fast and stable code?
}
}
So this discussion is not only about ******`s sscanf.