[Ajuda] errinho
#4

Код:
public OnPlayerStateChange(playerid, newstate, oldstate) // Nгo ta funcionando
{
	if (newstate == PLAYER_STATE_DRIVER)
	{
	    new carro = GetPlayerVehicleID(playerid);

	 	for(new i = 0; i < MAX_HOUSES; ++i)
	    {
		    if(carro == HInfo[i][hCarro]) // verificar se o player entrou em um carro de casas
		    {
      			new pNome[25];
         		GetPlayerName(playerid, pNome, 25);

//  				if(HInfo[i][hDono] != HInfo[playerid][hDono]) // verificar se o player й dono do carro
  				if(HInfo[i][hDono] !=  pNome) // verificar se o player й dono do carro
    			{
					RemovePlayerFromVehicle(playerid);
					SendClientMessage(playerid, -1, "Vocк nгo й o dono deste carro");
   				}
		    }
		}
	}
    return 1;
}
Код:
C:\Users\Lucas\Desktop\samp037_svr_R2-1-1_win32\gamemodes\HS.pwn(380) : error 033: array must be indexed (variable "pNome")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
errinho - by Duun - 22.10.2018, 06:29
Re: errinho - by ipsLuan - 22.10.2018, 11:05
Re: errinho - by Duun - 22.10.2018, 14:20
Re: errinho - by Duun - 22.10.2018, 14:23
Re: errinho - by FerrariL - 22.10.2018, 14:25
Re: errinho - by Ermanhaut - 22.10.2018, 14:26
Re: errinho - by Duun - 22.10.2018, 14:27
Re: errinho - by Ermanhaut - 22.10.2018, 14:29
Re: errinho - by Duun - 22.10.2018, 14:29
Re: errinho - by ipsLuan - 22.10.2018, 14:33

Forum Jump:


Users browsing this thread: 5 Guest(s)