Where is wrong?
#1

I try to make a random float
Код:
new Float:x, Float:y, Float:z;
	GetPlayerPos(playerid, x, y, z);
	new Float:rand = random(x+100) + x-100;//error
	new Float:rand2 = random(y+100) + y-100;//error
	SetPVarFloat(playerid,"diedx",rand);SetPVarFloat(playerid,"diedy",rand2);SetPVarFloat(playerid,"diedz",z);
	SetPVarInt(playerid,"diedv",GetPlayerVirtualWorld(playerid));
	SetPVarInt(playerid,"loading",1);
And pawno warnings:
Код:
C:\Users\Administrator\Desktop\FantasyLand\gamemodes\FantasyLand.pwn(1898) : warning 213: tag mismatch
C:\Users\Administrator\Desktop\FantasyLand\gamemodes\FantasyLand.pwn(1899) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Someone know why? I added "new Float:rand"
Isn`t "new rand"
But still give me warnings
Reply


Messages In This Thread
Where is wrong? - by 3417512908 - 12.06.2018, 10:31
Re: Where is wrong? - by Calisthenics - 12.06.2018, 10:40
Re: Where is wrong? - by Dayrion - 12.06.2018, 10:44
Re: Where is wrong? - by 3417512908 - 12.06.2018, 10:49
Re: Where is wrong? - by poppingrose - 12.06.2018, 14:14
Re: Where is wrong? - by NaS - 12.06.2018, 14:54
Re: Where is wrong? - by Ada32 - 12.06.2018, 15:53

Forum Jump:


Users browsing this thread: 2 Guest(s)