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
#2

Your double quotes are fucked. What are you trying to do?
Reply
#3

Did you defined them?
like #defined
Reply
#4

You have inutil quotes
Reply
#5

Please show us your color defines. Your embedding them wrong. Do it like this:

#define ORANGE "{FFFFFF}"
#define WHITE "{ABCDEF}"

format(string, sizeof(string), "Blablabla "#ORANGE" blublublu %s "#WHITE" yoyoyo.", whatever);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)