Problem with Sscanf2
#1

PHP код:
CMD:SetArmour(playerid,params[])
{
       new 
PidFloat:Armour;
       if(
sscanf(params,"uf",Pid,Armour)) return SendClientMessage(playerid,0xFF000000,"[Use] /SetArmour [ID] [ARMOUR]");
       
SetPlayerArmour(Pid,Armour);
return 
1;

Hi, i have a problem with Sscanf2.
This string is not correct
PHP код:
CMD:SetArmour(playerid,params[]) 
and give me this errors:

Код:
C:\Documents and Settings\Administrator\Documenti\SaMp\Server\filterscripts\prova.pwn(97) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Administrator\Documenti\SaMp\Server\filterscripts\prova.pwn(97) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Documenti\SaMp\Server\filterscripts\prova.pwn(97) : error 017: undefined symbol "params"
C:\Documents and Settings\Administrator\Documenti\SaMp\Server\filterscripts\prova.pwn(97) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Documenti\SaMp\Server\filterscripts\prova.pwn(97) : fatal error 107: too many error messages on one line
How can I resolv this errors?
Reply
#2

So this is zcmd problem not sscanf.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)