4 Errors +REP
#1

Why I get these errors:
pawn Код:
D:\SA-MP Things\SAMP 0.3.7\gamemodes\test.pwn(4964) : error 001: expected token: "-string end-", but found "-identifier-"
D:\SA-MP Things\SAMP 0.3.7\gamemodes\test.pwn(4964) : error 001: expected token: "-string end-", but found "-identifier-"
D:\SA-MP Things\SAMP 0.3.7\gamemodes\test.pwn(4964) : warning 215: expression has no effect
D:\SA-MP Things\SAMP 0.3.7\gamemodes\test.pwn(4964) : error 001: expected token: ";", but found "-integer value-"
D:\SA-MP Things\SAMP 0.3.7\gamemodes\test.pwn(4964) : fatal error 107: too many error messages on one line
In this line:
pawn Код:
format(string,sizeof(string),""ORANGE"%s (%d) "WHITE"Has Picked Up His "GREEN"Money Bag "WHITE"In "PURPLE" %s",pUserName[playerid],playerid,PlayerMoneyBagInfo[i][pBagLoc]);
The line is from:
pawn Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
    new string[256];
    for(new i=0; i < MAX_BAGS; i++)
    {
        if(pickupid == PlayerMoneyBagInfo[i][pBagPickup] && !PlayerMoneyBagInfo[i][pBagJustDroped])
        {
            if(!strcmp(PlayerMoneyBagInfo[i][pBagDroppedBy],pUserName[playerid]))
            {
                GivePlayerMoney(playerid,PlayerMoneyBagInfo[i][pBagCash]);
                PlayerMoneyBagInfo[i][pBagDropped]=false;
                DestroyDynamicPickup(PlayerMoneyBagInfo[i][pBagPickup]);
                format(string,sizeof(string),""ORANGE"%s (%d) "WHITE"Has Picked Up His "GREEN"Money Bag "WHITE"In "PURPLE" %s",pUserName[playerid],playerid,PlayerMoneyBagInfo[i][pBagLoc]);
                SendClientMessageToAll(-1,string);
            }
            else
            {
                GivePlayerMoney(playerid,PlayerMoneyBagInfo[i][pBagCash]);
                PlayerMoneyBagInfo[i][pBagDropped]=false;
                DestroyDynamicPickup(PlayerMoneyBagInfo[i][pBagPickup]);
                format(string,sizeof(string),""ORANGE"%s (%d) "WHITE"Has Picked Up The "GREEN"Money Bag "WHITE" In"PURPLE"%s"WHITE"",pUserName[playerid],playerid,PlayerMoneyBagInfo[i][pBagLoc]);
                SendClientMessageToAll(-1,string);
                format(string,sizeof(string),"Dropped By "ORANGE"%s "WHITE"And Received "GREEN"$%d",PlayerMoneyBagInfo[i][pBagDroppedBy],PlayerMoneyBagInfo[i][pBagCash]);
                SendClientMessageToAll(-1,string);
            }
        }
    }
    return 1;
}
I need help please.. I will +REP..
Reply


Messages In This Thread
4 Errors +REP - by Youssef221 - 03.06.2015, 08:09
Re: 4 Errors +REP - by Sithis - 03.06.2015, 08:15
Re: 4 Errors +REP - by SoFahim - 03.06.2015, 08:19
Re: 4 Errors +REP - by PepsiCola23 - 03.06.2015, 08:31
Re: 4 Errors +REP - by Manyula - 03.06.2015, 10:11

Forum Jump:


Users browsing this thread: 1 Guest(s)