SA-MP Forums Archive
whats wrong? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: whats wrong? (/showthread.php?tid=181074)



whats wrong? - nicoud - 03.10.2010

whats wrong with my jetpack command?
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp("/jp", cmdtext, true,) == 0)
	{
	new float:X, float:Y, float:Z;
	GetPlayerPos(playerid, X, Y, Z);
	CreatePickup(370, 3, X, Y, Z);
	
		return 1;
	}
	return 0;
}
error report

: warning 202: number of arguments does not match definition
: error 029: invalid expression, assumed zero
: warning 213: tag mismatch
: warning 213: tag mismatch
: warning 213: tag mismatch
: warning 213: tag mismatch
: tag mismatch
: warning 213: tag mismatch


Re: whats wrong? - Conroy - 03.10.2010

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/jp", cmdtext, true) == 0)
    {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        CreatePickup(370, 3, X, Y, Z);
        return 1;
    }
    return 0;
}