[Tutorial] Making a simple PM system with ZCMD & sscanf
#9

I got a problem

Did everything right, i gues, put the include
Код:
#include <zcmd>
and the 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 )

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


1 Error.
Btw. It's translated to Estonian, as you can see, dont mind that ^^.
Reply


Messages In This Thread
Making a simple PM system with ZCMD & sscanf - by Toni - 31.07.2010, 17:06
Re: Making a simple PM system with ZCMD & sscanf - by Kevin_Joshen - 31.07.2010, 23:59
Re: Making a simple PM system with ZCMD & sscanf - by willsuckformoney - 01.08.2010, 00:21
Re: Making a simple PM system with ZCMD & sscanf - by Kevin_Joshen - 01.08.2010, 00:34
Re: Making a simple PM system with ZCMD & sscanf - by Kar - 01.08.2010, 00:56
Re: Making a simple PM system with ZCMD & sscanf - by willsuckformoney - 01.08.2010, 02:45
Re: Making a simple PM system with ZCMD & sscanf - by hab2ever - 01.08.2010, 12:31
Re: Making a simple PM system with ZCMD & sscanf - by Toni - 01.08.2010, 13:59
Re: Making a simple PM system with ZCMD & sscanf - by M3ntaL - 01.08.2010, 16:30
Re: Making a simple PM system with ZCMD & sscanf - by Sergei - 01.08.2010, 16:35
Re: Making a simple PM system with ZCMD & sscanf - by Toni - 01.08.2010, 16:40
Re: Making a simple PM system with ZCMD & sscanf - by M3ntaL - 01.08.2010, 16:47
Re: Making a simple PM system with ZCMD & sscanf - by Sergei - 01.08.2010, 17:01
Re: Making a simple PM system with ZCMD & sscanf - by Toni - 01.08.2010, 17:30
Re: Making a simple PM system with ZCMD & sscanf - by Sergei - 01.08.2010, 20:02
Re: Making a simple PM system with ZCMD & sscanf - by Toni - 01.08.2010, 20:44
Re: Making a simple PM system with ZCMD & sscanf - by Blades - 18.08.2010, 10:32
Re: Making a simple PM system with ZCMD & sscanf - by Toni - 18.08.2010, 11:06
Re: Making a simple PM system with ZCMD & sscanf - by Blades - 19.08.2010, 08:41
Re: Making a simple PM system with ZCMD & sscanf - by Blades - 08.09.2010, 09:56
Re: Making a simple PM system with ZCMD & sscanf - by PinkFloydLover - 08.09.2010, 11:26
Re: Making a simple PM system with ZCMD & sscanf - by gondes - 19.09.2010, 15:53
Re: Making a simple PM system with ZCMD & sscanf - by Toni - 19.09.2010, 16:01
Re: Making a simple PM system with ZCMD & sscanf - by _rAped - 05.01.2011, 04:28
Re: Making a simple PM system with ZCMD & sscanf - by opik - 06.08.2011, 10:18
Re: Making a simple PM system with ZCMD & sscanf - by mickos - 08.06.2012, 05:12
Re: Making a simple PM system with ZCMD & sscanf - by chuck100 - 14.05.2013, 22:28
Re: Making a simple PM system with ZCMD & sscanf - by Pettersen - 18.05.2013, 17:10
Re: Making a simple PM system with ZCMD & sscanf - by ATGOggy - 30.10.2014, 13:59
Re: Making a simple PM system with ZCMD & sscanf - by Rudy_ - 30.10.2014, 14:01
Re: Making a simple PM system with ZCMD & sscanf - by ATGOggy - 30.10.2014, 14:24
Re: Making a simple PM system with ZCMD & sscanf - by Rudy_ - 30.10.2014, 14:25
Re: Making a simple PM system with ZCMD & sscanf - by ATGOggy - 30.10.2014, 14:30
Re: Making a simple PM system with ZCMD & sscanf - by ATGOggy - 30.10.2014, 17:16
Re: Making a simple PM system with ZCMD & sscanf - by ATGOggy - 31.10.2014, 11:05
Re: Making a simple PM system with ZCMD & sscanf - by Arastair - 08.11.2014, 14:44
Re: Making a simple PM system with ZCMD & sscanf - by antixgaming - 30.04.2018, 13:24

Forum Jump:


Users browsing this thread: 1 Guest(s)