Erro playerid :(
#1

Galera to com um erro na minha public aki coloquei uma facu + isso ta dando erro
pawn Код:
public TempoFaculdade()
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(NaFaculdade[i] == 1)
{
new string[256];
minutos[i]++;
new Float:X,Float:Y,Float:Z;
GetPlayerPos(i,X,Y,Z);
PlayerPlaySound(i,1076,X,Y,Z);
format(string, sizeof(string), "Passou-se mais 1 minuto com vocк estudando agora vocк estб %d/2 minutos.", minutos[i]);
SendClientMessage(i, Azul, string);
if(minutos[i] == 2)
{
NaFaculdade[i] = 0;
minutos[i] = 0;
SendClientMessage(i, Verde, "Vocк completou seu tempo de estudo, pode ir agora.");
SpawnPlayer(i);
new nomepl[MAX_PLAYER_NAME];
PlayerInfo[playerid][pFacu]++;
GetPlayerName(i, nomepl, sizeof(nomepl));
PlayerPlaySound(i,1077,X,Y,Z);
KillTimer(TempoFacul);
SetPlayerInterior(i, 0);
}
}
}
return 1;
}
Linha do erro
pawn Код:
PlayerInfo[playerid][pFacu]++;
e que tipo eu nao sei se e isso mesmo quando acaba a facu eli ganha + 1 facu e assim msm?
Reply
#2

define parametros a public ne u.u
pawn Код:
public TempoFaculdade(playerid)
ou entгo coloque um "i" no lugar do playerid
Reply
#3

Burrise -.- vlw ae ksks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)