SA-MP Forums Archive
[Ajuda] Problema sscanf - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Problema sscanf (/showthread.php?tid=474388)



Problema sscanf - Powers - 07.11.2013

Bom estou aprendendo usar a plugin sscanf , Bom Jб coloquei no GM a include <sscanf2>
Mais sempre quando eu compilo aparece esses erros.

PHP код:
C:\Users\Daniela Powers\Desktop\Unidos RPG\pawno\include\sscanf2.inc(227) : warning 202number of arguments does not match definition
C
:\Users\Daniela Powers\Desktop\Unidos RPG\pawno\include\sscanf2.inc(240) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Error

Alguйm sabe o que pode ser?, Obrigado !


Re: Problema sscanf - WLSF - 07.11.2013

Tem uma include que й o sscanf feito em pawn, e outro que й feito em plug-in, tu deve tar tentando usar os 2 ao mesmo tempo, deixa sу o do plug-in.


Problema resolvido


Abraзos.


Re: Problema sscanf - Powers - 07.11.2013

Quote:
Originally Posted by Willian_Luigi
Посмотреть сообщение
Tem uma include que й o sscanf feito em pawn, e outro que й feito em plug-in, tu deve tar tentando usar os 2 ao mesmo tempo, deixa sу o do plug-in.


Problema resolvido


Abraзos.
Bom cara, eu fiz o download da pasta sscanf, Extrair a include no arquivo Pawno/Include

e o plugin coloquei na pasta plugins e depois coloquei no server.cfg plugins sscanf


Re: Problema sscanf - WLSF - 07.11.2013

sscanf include:
pawn Код:
/*  
 *  Version: MPL 1.1
 *  
 *  The contents of this file are subject to the Mozilla Public License Version
 *  1.1 (the "License"); you may not use this file except in compliance with
 *  the License. You may obtain a copy of the License at
 *  http://www.mozilla.org/MPL/
 *  
 *  Software distributed under the License is distributed on an "AS IS" basis,
 *  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 *  for the specific language governing rights and limitations under the
 *  License.
 *  
 *  The Original Code is the sscanf 2.0 SA:MP plugin.
 *  
 *  The Initial Developer of the Original Code is Alex "******" Cole.
 *  Portions created by the Initial Developer are Copyright © 2010
 *  the Initial Developer. All Rights Reserved.
 *  
 *  Contributor(s):
 *  
 *  Special Thanks to:
 *  
 *  SA:MP Team past, present and future
 */


native sscanf(const data[], const format[], {Float,_}:...);
native unformat(const data[], const format[], {Float,_}:...) = sscanf;
sscanf plug-in:sscanf.rar


Testa com um new script, daqueles que sу tem as callbacks e etc, provavelmente nгo irб dar erros.





Re: Problema sscanf - Powers - 07.11.2013

Obrigado Sr.Willians, Tenho uma pequena dъvida Qual й a diferencia dessa plugin + a include , e a do ******( do Tуpico que foi postado a sscanf)


Re: Problema sscanf - WLSF - 07.11.2013

Nгo faзo a menor ideia, deve ser a mesma, eu acho, tu que tava errando alguma besteira ai...

Sу postei aquela resposta ali com os download pra te motivar.


Abraзos.


Re: Problema sscanf - Powers - 07.11.2013

Quote:
Originally Posted by Willian_Luigi
Посмотреть сообщение
Nгo faзo a menor ideia, deve ser a mesma, eu acho, tu que tava errando alguma besteira ai...

Sу postei aquela resposta ali com os download pra te motivar.


Abraзos.
Obrigado, agora estou satisfeita!