SA-MP Forums Archive
Random Spawns [ERROR] - 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: Random Spawns [ERROR] (/showthread.php?tid=624664)



Random Spawns [ERROR] - Thanks - 20.12.2016

Whats wrong here?

Код:
error 029: invalid expression, assumed zero
Код:
new Float:Test[][] =
{
****{751.6632, 383.0576, 23.1719, 98.8790},
****{420.3076,2531.8477,16.6039,267.9664},
****{-631.0760,2709.8491,72.3750,176.0458}
};



Re: Random Spawns [ERROR] - BiosMarcel - 20.12.2016

That code is completly fine , except the '*'


Re: Random Spawns [ERROR] - Thanks - 20.12.2016

Ok !! I thing the wrong is here?

Код:
forward robtimer(playerid); //Forwards your public
public robtimer(playerid)
{
	new string[128];
	new Random = random(sizeof(Test));
	SetPlayerFacingAngle(playerid, Test[Random][3]);
	{
	new rand = random(150000)+0; //When your robbing you get 0-130000 cash random
	GivePlayerMoney(playerid,rand); //it Gives your the random cash
	format(string, sizeof(string), "You have succesfully robbed $%d From Dragon Casino!", rand);
	SendClientMessage(playerid, COLOR_GREEN, string);
	}
    TogglePlayerControllable(playerid,1); //You can walk again
    return 1;
}



Re: Random Spawns [ERROR] - SickAttack - 20.12.2016

Yes, the curly braces, remove them (the second { and first }).

Also no need for the +0 there.


Re: Random Spawns [ERROR] - BiosMarcel - 20.12.2016

That's fine too, even tho the brackets are completly useless


Re: Random Spawns [ERROR] - Thanks - 20.12.2016

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
Yes, the curly braces, remove them (the second { and first }).

Also no need for the +0 there.
Hi, How to I can make Timer for Robbing? Texture down right left 5mintes for Pickup the Objects + Random Checkpoint for complete the robbing?

[I already make the objects But, How to I can make Random Checkpoint for Complete the robbing]?