whats wrong?
#1

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
Reply
#2

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;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)