[Plugin] sscanf - Now supports npcmodes

The page of download is not found.
Reply

Quote:
Originally Posted by AlexPalermitano97
Посмотреть сообщение
The page of download is not found.
As I said in my last post on here.. Read the above posts for the new thread.

https://sampforum.blast.hk/showthread.php?tid=602923
Reply

What is wrong ?


Quote:


sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '[', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '2', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier '4', skipping.
[16/10/2016 17:13:58] sscanf warning: Unknown format specifier ']', skipping.
Reply

Seems like you forgot s specifier before the size.

Ctrl + F and search for [24] until you find it and replace [24] to s[24]
Reply

Pls another download link, the dropbox one doesn't work.
Reply

https://github.com/maddinat0r/sscanf/releases
Reply

@kurta999 thx
Reply

fix the download links .. . please
Reply

Quote:
Originally Posted by kurta999
View Post
omg...
Reply

PHP Code:
    extract params -> new string:string[5]; else
    {
        
SCM(playerid, -1"Message 1");
        return 
SCM(playerid, -1"No PARAMS");
    } 
error 029: invalid expression, assumed zero
Reply

Awesome! We don't have to deal with strtok anymore!!!
Reply

Quote:
Originally Posted by kurta999
View Post
Weird, the sscanf ain't loading for me
Code:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team


Server Plugins
--------------
 Loading plugin: crashdetect
  CrashDetect v4.18.1 is OK.
  Loaded.
 Loading plugin: socket01b
 Socket plugin v0.1b loaded.
  Loaded.
 Loading plugin: sscanf
  Failed.
 Loaded 2 plugins.


Started server on port: 7777, with maxplayers: 50 lanmode is ON.


Filterscripts
---------------
  Loaded 0 filterscripts.

[debug] Run time error 19: "File or function is not found"
[debug]  SSCANF_Init
[debug]  SSCANF_IsConnected
[debug]  SSCANF_Join
[debug]  SSCANF_Leave
[debug]  sscanf
[debug] Run time error 19: "File or function is not found"
[debug]  SSCANF_Init
[debug]  SSCANF_IsConnected
[debug]  SSCANF_Join
[debug]  SSCANF_Leave
[debug]  sscanf
Script[gamemodes/socket.amx]: Run time error 19: "File or function is not found"
Number of vehicle models: 0
Windows 10


Are there any requirements to run this plugin? (preinstallations)
Cannot find any on the first post nor on GitHub.


EDIT: Got 2.8.1 version, runs fine
https://www.dropbox.com/s/wzfz108pps...scanf.dll?dl=0
for anyone who encounter problems running 2.8.2
Reply

Quote:
Originally Posted by LeonardoSantino
View Post
the downlink are expired
https://github.com/maddinat0r/sscanf/releases
Reply

Could you add sampctl support?
Reply

Quote:
Originally Posted by Misiur
View Post
Could you add sampctl support?
https://github.com/maddinat0r/sscanf
Reply

C:\Users\MIHAJLO\Desktop\samp037_svr_R2-2-1_win32\pawno\include\sscanf2.inc(258 ) : warning 202: number of arguments does not match definition
C:\Users\MIHAJLO\Desktop\samp037_svr_R2-2-1_win32\pawno\include\sscanf2.inc(271) : error 025: function heading differs from prototype

I'm not sure what's the problem
Reply

Quote:
Originally Posted by Mike861
View Post
C:\Users\MIHAJLO\Desktop\samp037_svr_R2-2-1_win32\pawno\include\sscanf2.inc(258 ) : warning 202: number of arguments does not match definition
C:\Users\MIHAJLO\Desktop\samp037_svr_R2-2-1_win32\pawno\include\sscanf2.inc(271) : error 025: function heading differs from prototype

I'm not sure what's the problem
Find and replace
pawn Code:
public OnPlayerDisconnect(playerid)
with
pawn Code:
public OnPlayerDisconnect(playerid, reason)
in your script or in some include that has the mistake.
Reply

Quote:
Originally Posted by Calisthenics
View Post
Find and replace
pawn Code:
public OnPlayerDisconnect(playerid)
with
pawn Code:
public OnPlayerDisconnect(playerid, reason)
in your script or in some include that has the mistake.
Thanks
Reply

Help. I don't understand why the id var is always 101 no matter what number I pass to it.

PHP Code:
new id;
new 
text;
new 
param[64 1];
param "1 Texttext. Texttext text. Texttext.";
sscanf(param"us[65]"idtext);
printf("params = %s"param);
printf("id = %d"id);
printf("text = %s"text); 
Output:
Code:
params = 1 Texttext. Texttext text. Texttext.
id = 101
text = Texttext. Texttext text. Texttext.
Reply

text should be declared as an array.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)