error 035: argument type mismatch (argument 2)
#2

Quote:
Originally Posted by MariusAdv
Посмотреть сообщение
Hello, I have a problem with "/fly" and "/stopfly":
Код:
CMD:fly(playerid, params[])
{
	StartFly(playerid);
	SetPlayerHealth(playerid, "99999999");                   //LINE 393
	SetPVarInt(playerid, "Fly", 1);
	return 1;
}

CMD:stopfly(playerid, params[])
{
	StopFly(playerid);
	SetPlayerHealth(playerid, "99");                              // LINE 401
	SetPVarInt(playerid, "Fly", 0);
	return 1;
}
I put InitFly on OnPlayerConnect and some more SetPVarInT all over there.:
Код:
SetPVarInt(playerid, "Fly", 0);
	InitFly(playerid);
Error:
Код:
C:\Users\Marius\Desktop\rpg v0.0.1\gamemodes\rpg.pwn(393) : error 035: argument type mismatch (argument 2)
C:\Users\Marius\Desktop\rpg v0.0.1\gamemodes\rpg.pwn(401) : error 035: argument type mismatch (argument 2)
Change this
PHP код:
SetPlayerHealth(playerid"99999999"); 
to
PHP код:
SetPlayerHealth(playerid99999999); 
same for this
PHP код:
SetPlayerHealth(playerid"99"); 
to
PHP код:
SetPlayerHealth(playerid,99); 
The ("") is only used for strings
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)