Error with sscansf
#1

C:\Users\Robin\Documents\Mijn ontvangen bestanden\MatthewGM\pawno\include\utils.inc(94) : error 021: symbol already defined: "sscanf"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Fucking shit,
Sscanf things:

Код:
dcmd_pm(playerid, params[])
{
	new giveplayerid, text[128];
    if(sscanf(params, "ds", giveplayerid, text))
	{
        SendClientMessage(playerid, COLOR_GREY, "RealLife: /pm [playerid] [message]");
        return 1;
    }
    if(IsPlayerConnected(giveplayerid))
 	{
 	    if(PlayerAway[giveplayerid] == 1)
    	{
        	SendClientMessage(playerid, COLOR_RED, "He is afk/brb dumbass! check /afklist the next time!");
        	return 1;
    	}
    	if(PmDisable == 1)
    	{
        	SendClientMessage(playerid, COLOR_RED, "Pm is disabled, please /sms or /callp");
        	return 1;
    	}
 	    new string[128];
 	    format(string, sizeof(string), "Message to: %s [%d]: %s", PlayerName[giveplayerid], giveplayerid, text);
 	    SendClientMessage(playerid, COLOR_YELLOW, string);

 	    format(string, sizeof(string), "Message from: %s [%d]: %s", PlayerName[playerid], playerid, text);
 	    SendClientMessage(giveplayerid, COLOR_YELLOW, string);

    	getdate(Years, Months, Days);
		gettime(Hours, Minutes, Seconds);
        format(string, sizeof(string), "PM from %s(%d) to %s(%d): %s", PlayerName[playerid], playerid, PlayerName[giveplayerid], giveplayerid, text);
    	SendPrivmsgToAdmins(COLOR_YELLOW, string);

    	format(string, sizeof(string), "[pm] [%02d/%02d/%02d] [%02d:%02d:%02d]: %s to %s: %s\n", Days, Months, Years, Hours, Minutes, Seconds, PlayerName[playerid], PlayerName[giveplayerid], text);
    	pmlog(string);
 	    return 1;
  	}
  	else
 	{
 		SendClientMessage(playerid, COLOR_GREY, "That playerid is not connected to the server!");
 	}
	return 1;
}
Код:
dcmd_gotopos(playerid, params[])
{
    new Float:x, Float:y, Float:z;
    if(sscanf(params, "fff", x, y, z))
	{
        SendClientMessage(playerid, COLOR_GREY, "RealLife: /gotopos [x] [y] [z]");
        return 1;
    }
	if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >= 6)
	{
	    new string[128];
		SetPlayerPos(playerid, x, y, z);
		format(string, sizeof(string), "RealLife: You have been teleported to: %f, %f, %f", x, y, z);
		SendClientMessage(playerid, COLOR_YELLOW, string);
	}
	else
	{
		SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this command.");
	}
	return 1;
}
Код:
dcmd_anim(playerid, params[])
{
    new anim[8];
    if(sscanf(params, "s", anim))
	{
        SendClientMessage(playerid, COLOR_GREY, "RealLife: /amin stop/handsup/sit/call/hangup/drunk/old/lay/deal/wank/piss");
        return 1;
    }
    if(strcmp(anim, "stop", true) == 0){	ClearAnimations(playerid); 													return 1;}
	if(strcmp(anim, "handsup", true) == 0){	SetPlayerSpecialAction(playerid, SPECIAL_ACTION_HANDSUP); 					return 1;}
	if(strcmp(anim, "call", true) == 0){	SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE); 				return 1;}
	if(strcmp(anim, "hangup", true) == 0){	SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE); 			return 1;}
	if(strcmp(anim, "sit", true) == 0){		SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SITTING);					return 1;}
	if(strcmp(anim, "drunk", true) == 0){	PlayAnimation(playerid, "PED", "WALK_DRUNK", 4.0, false, false, true); 		return 1;}
	if(strcmp(anim, "old", true) == 0){		PlayAnimation(playerid, "PED", "WALK_old", 4.0, false, false, true); 		return 1;}
	if(strcmp(anim, "lay", true) == 0){		PlayAnimation(playerid, "BEACH", "bather", 4.0, true, false, true); 		return 1;}
	if(strcmp(anim, "deal", true) == 0){	PlayAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, true, true, false);	return 1;}
	if(strcmp(anim, "wank", true) == 0){	PlayAnimation(playerid, "PAULNMAC", "wank_loop", 4.0, true, true, false);	return 1;} // wank_in, wank_loop, wank_out
	if(strcmp(anim, "piss", true) == 0){	PlayAnimation(playerid, "PAULNMAC", "Piss_loop", 4.0, true, true, false);	return 1;} // Piss_in, Piss_loop, Piss_out
	else
 	{
  		SendClientMessage(playerid, COLOR_GREY, "RealLife: /amin stop/handsup/sit/call/hangup/drunk/lay/deal");
	}
    return 1;
}
Uhh wtf is this..?
Reply
#2

The error is coming from pawno\include\utils.inc. Have a look inside of it.
Reply
#3

As i understand you have defined sscanf both "utils.inc" and your gamemode. Delete one of them and problem will get solved.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)