Got 3 errors
#1

I got these errors:

PHP код:
C:\Users\Thomas Williams\Desktop\GTA.pwn(110963) : error 029invalid expressionassumed zero
C
:\Users\Thomas Williams\Desktop\GTA.pwn(110963) : error 029invalid expressionassumed zero
C
:\Users\Thomas Williams\Desktop\GTA.pwn(110963) : error 001expected token")"but found ";"
C:\Users\Thomas Williams\Desktop\GTA.pwn(110963) : fatal error 107too many error messages on one line 
In this function:

PHP код:
[This is the line]Timer:RobberyCountdown[1000](playerid)
{
    foreach(
Playeri) {
        if(
PlayerInfo[i][pRobbingStore] >= 1) {
            new 
string[128];
            if(!
IsPlayerInRangeOfPoint(i15.0, -25.7616, -139.25281003.5469)) {
                
GameTextForPlayer(i"~r~Robbery Failed...~n~You left the store..."50005);
                
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(istring10005);
                
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.0istringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            
GivePlayerCash(irrand);
            
getdate(yearmonthday);
            
format(logsizeof(log), "%s has just robbed the store and recieved $%d (%d-%d-%d)"GetPlayerNameEx(i), rrandmonthdayyear);
            
Log("logs/robs.log"log);
            
PlayerInfo[i][pRobbingStore] =0;
            return 
1;
        }
        if(
PlayerInfo[i][pRobbingBank] >= 1) {
            new 
string[128];
            if(!
IsPlayerInRangeOfPoint(i15.02697.7288,-606.3294,-71.6582)) {
                
GameTextForPlayer(i"~r~Robbery Failed...~n~You left the bank..."50005);
                
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(istring10005);
                
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.0istringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            
GivePlayerCash(irrand);
            
getdate(yearmonthday);
            
format(logsizeof(log), "%s has just robbed the bank and recieved $%d (%d-%d-%d)"GetPlayerNameEx(i), rrandmonthdayyear);
            
Log("logs/robs.log"log);
            
PlayerInfo[i][pRobbingBank] =0;
            return 
1;
        }
        if(
PlayerInfo[i][pRobbingBank] >= 1) {
            new 
string[128];
            if(!
IsPlayerInRangeOfPoint(i15.03539.8320,-2032.0132,220.9153)) {
                
GameTextForPlayer(i"~r~Robbery Failed...~n~You left the bank..."50005);
                
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(istring10005);
                
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.0istringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            
GivePlayerCash(irrand);
            
getdate(yearmonthday);
            
format(logsizeof(log), "%s has just robbed the bank and recieved $%d (%d-%d-%d)"GetPlayerNameEx(i), rrandmonthdayyear);
            
Log("logs/robs.log"log);
            
PlayerInfo[i][pRobbingBank] =0;
            return 
1;
        }
    }
    return 
1;

please help
Reply
#2

[i]it's supposed to be this
pawn Код:
timer RobberyCountdown[1000](playerid)
not
pawn Код:
Timer:RobberyCountdown[1000](playerid)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)