SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 20/06/2015, 03:10 PM   #71
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,324
Reputation: 652
Default Re: sscanf v2.8.1 - Now supports npcmodes

Quote:
Originally Posted by RaeF View Post
@Emmet_ what is difference between sscanf 3.0 and sscanf 2.8.2?
Well, Y-Less had sscanf3 documented (like literally an entire wiki just for 3.0), but his entire github documentation is gone. I'm sure Emmet is going to document it again.
Crayder is offline   Reply With Quote
Old 11/07/2015, 10:36 PM   #72
Coystark
Little Clucker
 
Join Date: Jun 2015
Posts: 10
Reputation: 0
Default Re: sscanf v2.8.1 - Now supports npcmodes

How can I do it?

http://pastebin.com/fJLPqBNQ

if(sscanf(params, "d", vehicleid)) obviously don't work in the case.
Coystark is offline   Reply With Quote
Old 12/07/2015, 01:28 AM   #73
Emmet_
Guest
 
Posts: n/a
Default Re: sscanf v2.8.1 - Now supports npcmodes

Do something like:

pawn Code:
CMD:veiculos(playerid, params[])
{
    new param[12], value[128];

    if(Player[playerid][Admin] < 5)
        return SendErrorMessage(playerid, "Você não tem permissão para usar este comando.");
           
    if(sscanf(params, "s[12]S()[128]", param, value))
        return SendSyntaxMessage(playerid, "/veiculos <deletar/respawnar>");
 
    if(!strfind(param, "deletar", true))
    {
        static
            vehicleid;
 
        if(sscanf(value, "d", vehicleid))
            return SendSyntaxMessage(playerid, "/veiculos deletar <vehicleid>");
  Reply With Quote
Old 12/07/2015, 10:21 AM   #74
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,324
Reputation: 652
Default Re: sscanf v2.8.1 - Now supports npcmodes

Any new on the release of 3.0?
Crayder is offline   Reply With Quote
Old 12/07/2015, 11:08 AM   #75
Jeancarlos009
Big Clucker
 
Jeancarlos009's Avatar
 
Join Date: Aug 2014
Location: Colombia
Posts: 70
Reputation: 0
Default Respuesta: sscanf v2.8.1 - Now supports npcmodes

Is not there any way that the command had accent?
Jeancarlos009 is offline   Reply With Quote
Old 14/07/2015, 09:16 PM   #76
Omirrow
Huge Clucker
 
Join Date: Feb 2013
Location: Turkey
Posts: 282
Reputation: 8
Default Re: sscanf v2.8.1 - Now supports npcmodes

Hello there,

I have some problems about that plugin on my main computer, the server works finely on my laptop but when I try to open it on my main computer it does not work, I have downloaded the latest version of sscanf several times but it does not makes any change.

Here is a log from nativechecker;

Code:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7, (C)2005-2015 SA-MP Team

[00:14:29] 
[00:14:29] Server Plugins
[00:14:29] --------------
[00:14:29]  Loading plugin: mysql
[00:14:29] 

  > MySQL plugin R5 successfully loaded.

[00:14:29]   Loaded.
[00:14:29]  Loading plugin: sscanf
[00:14:29]   Failed.
[00:14:29]  Loading plugin: streamer
[00:14:29] 

*** Streamer Plugin v2.7.7 by Incognito loaded ***

[00:14:29]   Loaded.
[00:14:29]  Loading plugin: nativechecker
[00:14:29]   Loaded.
[00:14:29]  Loaded 3 plugins.

[00:14:29] 
[00:14:29] Filterscripts
[00:14:29] ---------------
[00:14:29]   Loading filterscript 'vspawner.amx'...
[00:14:29] 
--Admin Vehicle Spawner Loaded

[00:14:29]   Loaded 1 filterscripts.

[00:14:29]    Error: Function not registered: 'SSCANF_Init'
[00:14:29]    Error: Function not registered: 'SSCANF_IsConnected'
[00:14:29]    Error: Function not registered: 'SSCANF_Join'
[00:14:29]    Error: Function not registered: 'SSCANF_Leave'
[00:14:29] Script[gamemodes/imrp.amx]: Run time error 19: "File or function is not found"
[00:14:29] Number of vehicle models: 0
My plugins line;

Code:
plugins mysql sscanf streamer nativechecker
Omirrow is offline   Reply With Quote
Old 14/07/2015, 09:27 PM   #77
Omirrow
Huge Clucker
 
Join Date: Feb 2013
Location: Turkey
Posts: 282
Reputation: 8
Default Re: sscanf v2.8.1 - Now supports npcmodes

Alright guys, I have fixed the issue, I think a lot of people having the same one so here is a fix;

I have removed #include <sscanf2> and F5'd (compl), and then I removed sscanf from plugins line, started the server, it worked finely, and then I put sscanf include once again, and added sscanf to plugins line and started the server, it's now working fine.
Omirrow is offline   Reply With Quote
Old 14/07/2015, 09:42 PM   #78
Virtual1ty
Banned
 
Join Date: Jun 2009
Location: Croatia (Hrvatska)
Posts: 734
Reputation: 102
Default Re: sscanf v2.8.1 - Now supports npcmodes

Quote:
Originally Posted by Omirrow View Post
Alright guys, I have fixed the issue, I think a lot of people having the same one so here is a fix;

I have removed #include <sscanf2> and F5'd (compl), and then I removed sscanf from plugins line, started the server, it worked finely, and then I put sscanf include once again, and added sscanf to plugins line and started the server, it's now working fine.
Yeah, always recompile your gamemode with the latest includes. I've also lately heard it could be due to nativechecker, make sure it's the last in the plugins line, also remove it when you know why your mode doesn't start (when you find out what the missing functions are). Re-downloading the plugin also fixed it for some people.
Virtual1ty is offline   Reply With Quote
Old 15/07/2015, 04:34 PM   #79
BladeFire
Big Clucker
 
Join Date: Jul 2015
Posts: 61
Reputation: 7
Default Re: sscanf v2.8.1 - Now supports npcmodes

Great Work!
BladeFire is offline   Reply With Quote
Old 15/07/2015, 04:43 PM   #80
Emmet_
Guest
 
Posts: n/a
Default Re: sscanf v2.8.1 - Now supports npcmodes

Quote:
Originally Posted by Crayder View Post
Any new on the release of 3.0?
I think I might just compile 3.0 and release it.
  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 08:36 PM.


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