SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 09/04/2020, 06:44 AM   #171
Misiur
High-roller
 
Misiur's Avatar
 
Join Date: Jul 2009
Location: Poland
Posts: 2,528
Reputation: 556
Default Re: sscanf - Now supports npcmodes

Could you add sampctl support?
Misiur is offline   Reply With Quote
Old 09/04/2020, 06:50 AM   #172
Calisthenics
High-roller
 
Join Date: May 2018
Posts: 1,228
Reputation: 205
Default Re: sscanf - Now supports npcmodes

Quote:
Originally Posted by Misiur View Post
Could you add sampctl support?
https://github.com/maddinat0r/sscanf
__________________
Calisthenics is offline   Reply With Quote
Old 19/04/2020, 08:59 AM   #173
Mike861
Huge Clucker
 
Join Date: Feb 2018
Posts: 226
Reputation: 16
Default Re: sscanf - Now supports npcmodes

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
Mike861 is offline   Reply With Quote
Old 19/04/2020, 09:03 AM   #174
Calisthenics
High-roller
 
Join Date: May 2018
Posts: 1,228
Reputation: 205
Default Re: sscanf - Now supports npcmodes

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.
__________________
Calisthenics is offline   Reply With Quote
Old 19/04/2020, 09:06 AM   #175
Mike861
Huge Clucker
 
Join Date: Feb 2018
Posts: 226
Reputation: 16
Default Re: sscanf - Now supports npcmodes

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
Mike861 is offline   Reply With Quote
Old 14/05/2020, 04:10 PM   #176
natovan
Little Clucker
 
Join Date: Nov 2019
Posts: 27
Reputation: 0
Default Re: sscanf - Now supports npcmodes

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.
natovan is offline   Reply With Quote
Old 19/05/2020, 11:59 PM   #177
Grim_
High-roller
 
Grim_'s Avatar
 
Join Date: Sep 2008
Location: United States
Posts: 2,897
Reputation: 118
Default Re: sscanf - Now supports npcmodes

text should be declared as an array.
Grim_ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is npcmodes OoAMoO Server Support 0 03/06/2011 05:00 PM
how i use npcmodes OmarEco Help Archive 4 09/07/2010 02:40 PM
communicate from npcmodes? beckzy Help Archive 3 03/05/2010 09:16 PM
how to use npcmodes? oObig_manOo Help Archive 0 12/03/2010 04:45 AM
Multiple NPCs using 2 npcmodes? Programie Help Archive 0 07/03/2010 12:19 PM


All times are GMT. The time now is 02:53 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.