SA-MP Forums Archive
argument type mismatch (argument 2) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: argument type mismatch (argument 2) (/showthread.php?tid=410404)



argument type mismatch (argument 2) - sscarface - 25.01.2013

.pwn(7084) : error 035: argument type mismatch (argument 2)
pwn(7441) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Код:
(7084):	TextDrawHideForPlayer(playerid, NVCNRInfo);
Код:
(7441): TextDrawShowForPlayer(playerid, NVCNRInfo);
Код:
public OnPlayerEnterCheckpoint(playerid)
{
	TextDrawShowForPlayer(playerid, NVCNRInfo);

	VerifyCheckpoint(playerid);
	if(HasSetCheckpoint{playerid} == 1)
	{
     	PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
	    DisablePlayerCheckpoint(playerid);
	    HasSetCheckpoint{playerid} = 0;
	    SendClientMessage(playerid, RED, "Your currently set checkpoint has been removed.");
	}
	return 1;
}
Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
	TextDrawHideForPlayer(playerid, NVCNRInfo);
	return true;
}



Re: argument type mismatch (argument 2) - sscarface - 25.01.2013

Fixed.!