Colors.
#3

Quote:
Originally Posted by MCZOFT
Посмотреть сообщение
.... give us more we'll help you more .
you're missing something

where is the stocks of SetPlayerWantedColor .. GetPlayerWanted... where r the IF conditions on your " OnPlayerUpdate "



Revise your Sctructors
PHP код:
EXAMPLE ....
new
    
5;
switch (
a)
{
    case 
1:
    {
        
// Won't be called
    
}
    case 
2:
    {
        
// Won't be called
    
}
    case 
5:
    {
        
// Will be called
    
}
    default:
    {
        
// Won't be called
    
}

i cant do much for you just with 3 randomly Lines...

Good luck
First of all: https://sampforum.blast.hk/showthread.php?tid=570635
Second: do you see that he uses SetPlayerColor and GetPlayerWantedLevel, which are the premade functions? Why would he need to make some custom ones?
Third: you copied the switch from SA-MP wiki lol.

Quote:
Originally Posted by CannonBolt
Посмотреть сообщение
Код:
forward WantedLevelColour(playerid);
public WantedLevelColour(playerid)
{
		switch(GetPlayerWantedLevel(playerid))
		{
			case 0: SetPlayerColor(playerid, COLOR_WHITE);
			case 1: SetPlayerColor(playerid, COLOR_PURPLE);
			default: SetPlayerColor(playerid, COLOR_RED);
		}

	return 1;
}
Could somebody tell me why this isn't working?

i've it all ways and it still doesn't work.
Where do you call WantedLevelColour? Do you have a timer? Nothing seems to be wrong with your code though...
Reply


Messages In This Thread
Colors. - by CannonBolt - 02.10.2016, 21:14
Re: Colors. - by MCZOFT - 04.10.2016, 12:51
Re: Colors. - by GoldenLion - 04.10.2016, 13:02
Re: Colors. - by MCZOFT - 04.10.2016, 13:13
Re: Colors. - by GoldenLion - 04.10.2016, 13:16
Re: Colors. - by Crayder - 04.10.2016, 13:18
Re: Colors. - by CannonBolt - 09.10.2016, 16:50
Re: Colors. - by azzerking - 09.10.2016, 17:03
Re: Colors. - by CannonBolt - 09.10.2016, 17:06
Re: Colors. - by Crayder - 09.10.2016, 17:26

Forum Jump:


Users browsing this thread: 1 Guest(s)