HELP With some errors
#4

Quote:
Originally Posted by IceBilizard
View Post
1 question why you are using this code for getting player cash?

You can define in command directly like this

Code:
COMMAND:dinero(playerid,params[]) //546 line
{
	if(GetPlayerMoney(playerid) <= 0);
	{
 	               GivePlayerMoney(playerid, 100000);
 	               SendClientMessage(playerid, COLOR_BLUE, "ЎDisfruta del dinero!");
	}
	else if(GetPlayerNoney(playerid) >= 2);
	SendClientMessage(playerid, COLOR_RED, "ЎTu ya tienes dinero!");
	return 1;

}
If statements and else statements doesnt have semi-colen. Remove those.
And you can not directly use condition in else, you have to use else if. Add if there.
Reply


Messages In This Thread
HELP With some errors - by FrancoBello - 01.11.2018, 01:01
Re: HELP With some errors - by Mobtiesgangsa - 01.11.2018, 01:39
Re: HELP With some errors - by IceBilizard - 01.11.2018, 04:32
Re: HELP With some errors - by GTLS - 01.11.2018, 05:16
Re: HELP With some errors - by UFF - 01.11.2018, 05:35

Forum Jump:


Users browsing this thread: 2 Guest(s)