SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 30/10/2014, 03:24 PM   #31
ATGOggy
Gangsta
 
Join Date: Sep 2014
Location: Ls-rcr
Posts: 850
Reputation: 52
Default Re: Making a simple PM system with ZCMD & sscanf

yes i downloaded it and copied it to pawno>inlude
ATGOggy is offline   Reply With Quote
Old 30/10/2014, 03:25 PM   #32
Rudy_
High-roller
 
Rudy_'s Avatar
 
Join Date: Nov 2011
Location: Pakistan
Posts: 1,512
Reputation: 228
Default Re: Making a simple PM system with ZCMD & sscanf

Do you have it inside your Gamemode/script?

pawn Code:
#include <Zcmd>
__________________
And now my Watch has Ended.


[Tutorial]
[TuT]How to create a car shooting Neon

[Filterscript]
Neon Vehicle Laser


__________________________________________________
Rudy_ is offline   Reply With Quote
Old 30/10/2014, 03:30 PM   #33
ATGOggy
Gangsta
 
Join Date: Sep 2014
Location: Ls-rcr
Posts: 850
Reputation: 52
Default Re: Making a simple PM system with ZCMD & sscanf

yes, also below zcmd.inc in right side, there are no fuctions.
ATGOggy is offline   Reply With Quote
Old 30/10/2014, 06:16 PM   #34
ATGOggy
Gangsta
 
Join Date: Sep 2014
Location: Ls-rcr
Posts: 850
Reputation: 52
Default Re: Making a simple PM system with ZCMD & sscanf

rudy, plz help me
ATGOggy is offline   Reply With Quote
Old 31/10/2014, 12:05 PM   #35
ATGOggy
Gangsta
 
Join Date: Sep 2014
Location: Ls-rcr
Posts: 850
Reputation: 52
Default Re: Making a simple PM system with ZCMD & sscanf

when i covert it to dcmd, it the same error occurs
ATGOggy is offline   Reply With Quote
Old 08/11/2014, 03:44 PM   #36
Arastair
Gangsta
 
Join Date: Jun 2014
Posts: 830
Reputation: 49
Default Re: Making a simple PM system with ZCMD & sscanf

Nice tut, very well explained
__________________
"War does not determine who is right... only who is left"
Arastair is offline   Reply With Quote
Old 30/04/2018, 02:24 PM   #37
antixgaming
Little Clucker
 
antixgaming's Avatar
 
Join Date: Apr 2018
Posts: 13
Reputation: 4
Default Re: Making a simple PM system with ZCMD & sscanf

Quote:
Originally Posted by M3ntaL View Post
I got a problem

Did everything right, i gues, put the include
Code:
#include <zcmd>
and the code
Code:
CMD:es(playerid, params[])
{
    new str[256], str2[256], id, Name1[MAX_PLAYER_NAME], Name2[MAX_PLAYER_NAME];
    if(sscanf(params, "us", id, str2))
    {
    	SendClientMessage(playerid, 0xFF0000FF, "Vihje: /es <id> <sõnum>");
  		return 1;
    }
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFF0000FF, "VIGA: Player not connected");
    if(playerid != id) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You cannot pm yourself!");
    {
		GetPlayerName(playerid, Name1, sizeof(Name1));
 		GetPlayerName(id, Name2, sizeof(Name2));
        format(str, sizeof(str), "ES kasutajalt %s(ID %d): %s", Name2, id, str2);
        SendClientMessage(playerid, 0xFF0000FF, str);
        format(str, sizeof(str), "ES kasutajalt %s(ID %d): %s", Name1, playerid, str2);
        SendClientMessage(id, 0xFF0000FF, str);
    }
    return 1;
}

but i keep getting this error while i try to compile it ( just started scripting, i think i'm with good brain... just dont figure this out )

Code:
C:\Documents and Settings\Owner\Desktop\BBRP GM\gamemodes\bbrp.pwn(51) : error 017: undefined symbol "sscanf"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Btw. It's translated to Estonian, as you can see, dont mind that ^^.
You didn't included sscanf. At top of your script should be #include <sscanf2>, and of course you will need sscanf installed.
antixgaming 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
ZCMD/SSCANF PROBLEM Zeromanster Help Archive 2 28/02/2010 12:26 AM
Simple ZCMD Tutorial Script (.Aztec); Filterscripts 5 13/01/2010 01:58 AM
ZCMD + SSCANF PROBLEM Zeromanster Help Archive 6 22/11/2009 02:13 AM
sscanf and zcmd question about commands with multi parameters Dujma Help Archive 5 21/11/2009 02:24 AM
[Help]Zcmd & sscanf Dirty_bum Help Archive 3 28/10/2009 01:10 PM


All times are GMT. The time now is 06:36 PM.


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