error 029: invalid expression, assumed zero
#1

(8229) : error 029: invalid expression, assumed zero

Script :
Quote:

forward UnsetKucaRob();
public UnsetKucaRob()
{
KucaRobbedRecently = 0;
return 1;
}
forward RobKuca(playerid);
public RobKuca(playerid)
{
new string[128];
for(new i = 0; i < sizeof(KucaInfo); i++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, KucaInfo[i][kUlazX], KucaInfo[i][kUlazY], KucaInfo[i][kUlazZ]))
{
if(KucaRobbingTime[playerid] > 0)
{
KucaRobbingTime[playerid] --;
format(string, sizeof(string),"~w~Ostanite kod vrata te kuce jos ~r~%d ~w~sekundi !", KucaRobbingTime[playerid]);
GameTextForPlayer(playerid, string, 1000, 4);
}
else
{
KillTimer(RobKucaTimer);
KucaRobbingTime[playerid] = 0;
SetPlayerVirtualWorld(playerid, KucaInfo[i][kVW]);
SetPlayerInterior(playerid, KucaInfo[i][kInt]);
SetPlayerPos(playerid, KucaInfo[i][kIzlazX], KucaInfo[i][kIzlazY], KucaInfo[i][kIzlazZ]);
format(string,sizeof(string),"Lopov %s razvaljuje vrata od kuce i hitro ulazi u nju!",GetName(playerid));
ProxDetector(10.0, playerid, string,PROX,PROX,PROX,PROX,PROX);
}
}
}
else ////////////////////////////////////////////////////////// 8229 this line
{
format(string, sizeof(string),""ORANGE"INFO:"BELA"Otisli ste sa pickupa i provaljivanje vam se prekinulo!");
KucaRobbingTime[playerid] = 0;
KillTimer(RobKucaTimer);
}
return 1;
}

Please help, tnx
Reply
#2

Quote:
Originally Posted by Vaki
Посмотреть сообщение
(8229) : error 029: invalid expression, assumed zero

Script :
Please help, tnx
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    //
}
else
{
    //
}
You added an else to the loop, which caused the following error:

029: invalid expression, assumed zero
Reply
#3

Which is the 8229 line so we can help you
Reply
#4

You got on down of text
Reply
#5

Quote:
Originally Posted by Vaki
Посмотреть сообщение
You got on down of text
I already gave you the answer. Please check my comment.
Reply
#6

try this
pawn Код:
forward UnsetKucaRob();
public UnsetKucaRob()
{
KucaRobbedRecently = 0;
return 1;
}
forward RobKuca(playerid);
public RobKuca(playerid)
{
new string[128];
for(new i = 0; i < sizeof(KucaInfo); i++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, KucaInfo[i][kUlazX], KucaInfo[i][kUlazY], KucaInfo[i][kUlazZ]))
{
if(KucaRobbingTime[playerid] > 0)
{
KucaRobbingTime[playerid] --;
format(string, sizeof(string),"~w~Ostanite kod vrata te kuce jos ~r~%d ~w~sekundi !", KucaRobbingTime[playerid]);
GameTextForPlayer(playerid, string, 1000, 4);
}
}
}
else
{
KillTimer(RobKucaTimer);
KucaRobbingTime[playerid] = 0;
SetPlayerVirtualWorld(playerid, KucaInfo[i][kVW]);
SetPlayerInterior(playerid, KucaInfo[i][kInt]);
SetPlayerPos(playerid, KucaInfo[i][kIzlazX], KucaInfo[i][kIzlazY], KucaInfo[i][kIzlazZ]);
format(string,sizeof(string),"Lopov %s razvaljuje vrata od kuce i hitro ulazi u nju!",GetName(playerid));
ProxDetector(10.0, playerid, string,PROX,PROX,PROX,PROX,PROX);
}
else ////////////////////////////////////////////////////////// 8229 this line
{
format(string, sizeof(string),""ORANGE"INFO:"BELA"Otisli ste sa pickupa i provaljivanje vam se prekinulo!");
KucaRobbingTime[playerid] = 0;
KillTimer(RobKucaTimer);
}
return 1;
}
Reply
#7

Peter is good but i cant do that how he think i can because i try something new but tnx all for help
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)