4 Errors +REP - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 4 Errors +REP (
/showthread.php?tid=576341)
4 Errors +REP -
Youssef221 - 03.06.2015
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..
Re: 4 Errors +REP -
Sithis - 03.06.2015
Your double quotes are fucked. What are you trying to do?
Re: 4 Errors +REP -
SoFahim - 03.06.2015
Did you defined them?
like #defined
Re: 4 Errors +REP -
PepsiCola23 - 03.06.2015
You have inutil quotes
Re: 4 Errors +REP -
Manyula - 03.06.2015
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);