[Ajuda] Problema com OnStateChange
#1

alguem poderia me explicar oque ta errado nesse cуdigo?
Код:
	if(oldstate == PLAYER_STATE_ONFOOT || newstate == PLAYER_STATE_ONFOOT )
	{
	if(arrayPlayer[playerid][Pinderby] == 1)
	{

  			new vehicleid = GetPlayerVehicleID(playerid);
			for(new z = 0; z < MAX_PLAYERS; ++z)
			{
				if(vehicleid == derbycar[z])
				{
				    new string[128];
				    format(string, sizeof(string), "'%s'(%d) foi desclassificado do Derby .", pNome(z),z);
				    SendClientMessageToAll(0xe045ffff,string);
				    arrayPlayer[z][Pinderby] = 0;
				    randomSpawn(z);
				    RemovePlayerFromDerby(z);
				}
			}
		}
	}
ele tinha que verificar se o jogador esta no derby, se saiu do carro ou o carro explodiu executar as coisas abaixo @_@
Reply


Messages In This Thread
[Ajuda] Problema com OnStateChange - by cotonete - 10.10.2011, 23:05
Re: [Ajuda] Problema com OnStateChange - by Shelby - 10.10.2011, 23:10

Forum Jump:


Users browsing this thread: 1 Guest(s)