08.08.2012, 04:29
Ok guyz i've got a big problem (again but different)
and the linez:
please help me to solve the problems (REP+)
Код:
D:\Jocuri\Long Beach California Hard Roleplay\gamemodes\ZRP.pwn(2519) : error 003: declaration of a local variable must appear in a compound block D:\Jocuri\Long Beach California Hard Roleplay\gamemodes\ZRP.pwn(2519) : error 017: undefined symbol "string" D:\Jocuri\Long Beach California Hard Roleplay\gamemodes\ZRP.pwn(2519) : warning 215: expression has no effect D:\Jocuri\Long Beach California Hard Roleplay\gamemodes\ZRP.pwn(2519) : error 001: expected token: ";", but found "]" D:\Jocuri\Long Beach California Hard Roleplay\gamemodes\ZRP.pwn(2519) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
for(new playerid; playerid < MAX_PLAYERS; playerid++)
{
new Float:health;
GetPlayerHealth(playerid, health);
new HungryTime = SetPlayerHealth(playerid, health-5);
if(GetProgressBarValue(hungry[playerid]) <= 0)
new string[255];
{
SetTimer("HungryTime", 10000, 1);
format(string, sizeof(string), "* %s starts feeling hungry.", RPN(playerid), price);
SendClientMessage(playerid, COLOR_HUNGRY, "You are hungry, go and eat something.");
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE);
}
if(GetProgressBarValue(hungry[playerid]) <= 0)
{
SetProgressBarValue(hungry[playerid], 0);
}
if(GetProgressBarValue(hungry[playerid]) > 0)
{
KillTimer(HungryTime);
}
}
return 1;
}


