Random Spawns [ERROR]
#1

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

That code is completly fine , except the '*'
Reply
#3

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

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

Also no need for the +0 there.
Reply
#5

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

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]?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)