16.11.2013, 16:08
I got these errors:
In this function:
please help
PHP код:
C:\Users\Thomas Williams\Desktop\GTA.pwn(110963) : error 029: invalid expression, assumed zero
C:\Users\Thomas Williams\Desktop\GTA.pwn(110963) : error 029: invalid expression, assumed zero
C:\Users\Thomas Williams\Desktop\GTA.pwn(110963) : error 001: expected token: ")", but found ";"
C:\Users\Thomas Williams\Desktop\GTA.pwn(110963) : fatal error 107: too many error messages on one line
PHP код:
[This is the line]Timer:RobberyCountdown[1000](playerid)
{
foreach(Player, i) {
if(PlayerInfo[i][pRobbingStore] >= 1) {
new string[128];
if(!IsPlayerInRangeOfPoint(i, 15.0, -25.7616, -139.2528, 1003.5469)) {
GameTextForPlayer(i, "~r~Robbery Failed...~n~You left the store...", 5000, 5);
PlayerInfo[i][pRobbingStore] =0;
return 1;
}
if(PlayerInfo[i][pRobbingStore] > 1) {
format(string,sizeof(string),"~r~Robbing Store...~n~~w~Complete in ~b~%d ~w~seconds...",PlayerInfo[i][pRobbingStore]);
GameTextForPlayer(i, string, 1000, 5);
PlayerInfo[i][pRobbingStore] --;
return 1;
}
new rrand = random(40000);
new year,month,day,log[128];
format(string,sizeof(string),"* %s has robbed $%d from the till.",GetPlayerNameEx(i),rrand);
ProxDetector(30.0, i, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerCash(i, rrand);
getdate(year, month, day);
format(log, sizeof(log), "%s has just robbed the store and recieved $%d (%d-%d-%d)", GetPlayerNameEx(i), rrand, month, day, year);
Log("logs/robs.log", log);
PlayerInfo[i][pRobbingStore] =0;
return 1;
}
if(PlayerInfo[i][pRobbingBank] >= 1) {
new string[128];
if(!IsPlayerInRangeOfPoint(i, 15.0, 2697.7288,-606.3294,-71.6582)) {
GameTextForPlayer(i, "~r~Robbery Failed...~n~You left the bank...", 5000, 5);
PlayerInfo[i][pRobbingBank] =0;
return 1;
}
if(PlayerInfo[i][pRobbingBank] > 1) {
format(string,sizeof(string),"~r~Robbing Bank...~n~~w~Complete in ~b~%d ~w~seconds...",PlayerInfo[i][pRobbingBank]);
GameTextForPlayer(i, string, 1000, 5);
PlayerInfo[i][pRobbingBank] --;
return 1;
}
new rrand = random(300000);
new year,month,day,log[128];
format(string,sizeof(string),"* %s has robbed $%d from the bank safe.",GetPlayerNameEx(i),rrand);
ProxDetector(30.0, i, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerCash(i, rrand);
getdate(year, month, day);
format(log, sizeof(log), "%s has just robbed the bank and recieved $%d (%d-%d-%d)", GetPlayerNameEx(i), rrand, month, day, year);
Log("logs/robs.log", log);
PlayerInfo[i][pRobbingBank] =0;
return 1;
}
if(PlayerInfo[i][pRobbingBank] >= 1) {
new string[128];
if(!IsPlayerInRangeOfPoint(i, 15.0, 3539.8320,-2032.0132,220.9153)) {
GameTextForPlayer(i, "~r~Robbery Failed...~n~You left the bank...", 5000, 5);
PlayerInfo[i][pRobbingBank] =0;
return 1;
}
if(PlayerInfo[i][pRobbingBank] > 1) {
format(string,sizeof(string),"~r~Robbing Bank...~n~~w~Complete in ~b~%d ~w~seconds...",PlayerInfo[i][pRobbingBank]);
GameTextForPlayer(i, string, 1000, 5);
PlayerInfo[i][pRobbingBank] --;
return 1;
}
new rrand = random(300000);
new year,month,day,log[128];
format(string,sizeof(string),"* %s has robbed $%d from the bank safe.",GetPlayerNameEx(i),rrand);
ProxDetector(30.0, i, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerCash(i, rrand);
getdate(year, month, day);
format(log, sizeof(log), "%s has just robbed the bank and recieved $%d (%d-%d-%d)", GetPlayerNameEx(i), rrand, month, day, year);
Log("logs/robs.log", log);
PlayerInfo[i][pRobbingBank] =0;
return 1;
}
}
return 1;
}