Why is sscanf2 giving me an argument mismatch (argument 1)
#1

No idea why, but this line of code is just returning error "Argument Mismatch (argument 1)"

pawn Код:
CMD:spawncar(playerid, params)
    {
        new vehicle;
       
        if(sscanf(params, "d", vehicle))
        {
            SendClientMessage(playerid, clr_White, "Why");
        }
        return 1;
    }
Reply
#2

PHP код:
    CMD:spawncar(playeridparams[])
    {
        new 
vehicle;
        
        if(
sscanf(params"d"vehicle))
        {
            
SendClientMessage(playeridclr_White"Why");
        }
        return 
1;
    } 
Reply
#3

Change:
pawn Код:
CMD:spawncar(playerid, params)
With:
pawn Код:
CMD:spawncar(playerid, params[]) // params is a string
Reply
#4

OH FOR FUCKS SAKE HOW DO I EVEN


+rep j4rr3x
+rep other guy aswell
Reply
#5

Quote:
Originally Posted by sammp
Посмотреть сообщение
OH FOR FUCKS SAKE HOW DO I EVEN


+rep j4rr3x
Ty
Reply


Forum Jump:


Users browsing this thread: