stock
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
You mean "function". There's no such thing as "a stock". It's not random, it's just flawed logic. Unless you have negative levels the color will always be white. Consider using a switch.

PHP код:
switch(GetPlayerWantedLevel(playerid))
{
    case 
0SetPlayerColor(playeridCOLOR_WHITE);
    case 
.. 3SetPlayerColor(playeridCOLOR_YELLOW);
    case 
.. 10SetPlayerColor(playeridCOLOR_ORANGE)
    default: 
SetPlayerColor(playeridCOLOR_DARKORANGE);

Hello vince, i make it like this

and still not work...
PHP код:
stock SetPlayerColors(playeridlevel)
{
  switch(
GetPlayerWantedLevel(playerid))
{
    case 
0SetPlayerColor(playeridCOLOR_WHITE);
    case 
.. 3SetPlayerColor(playeridCOLOR_YELLOW);
    case 
.. 10SetPlayerColor(playeridCOLOR_ORANGE)
    default: 
SetPlayerColor(playeridCOLOR_DARKORANGE);
}
  return 
1;

Reply


Messages In This Thread
stock - by Man43 - 20.04.2017, 18:42
Re: stock - by AndreiWow - 20.04.2017, 18:46
Re: stock - by Vince - 20.04.2017, 18:48
Re: stock - by Man43 - 20.04.2017, 18:52
Re: stock - by AndreiWow - 20.04.2017, 19:00
Re: stock - by Man43 - 20.04.2017, 19:01
Re: stock - by AndreiWow - 20.04.2017, 19:02
Re: stock - by Man43 - 20.04.2017, 19:04
Re: stock - by Bolex_ - 20.04.2017, 19:06
Re: stock - by DRIFT_HUNTER - 20.04.2017, 19:37

Forum Jump:


Users browsing this thread: 1 Guest(s)