22.10.2018, 14:23
Код:
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.