[HELP]Error on string message! - 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: [HELP]Error on string message! (
/showthread.php?tid=480398)
[HELP]Error on string message! -
iOxide - 10.12.2013
Hey guys can you tell me why am i getting these errors?
Код:
C:\Users\bijay\Desktop\Trucking\pawno\include\PPC_MissionsTrucking.inc(173) : error 037: invalid string (possibly non-terminated string)
C:\Users\bijay\Desktop\Trucking\pawno\include\PPC_MissionsTrucking.inc(173) : warning 215: expression has no effect
C:\Users\bijay\Desktop\Trucking\pawno\include\PPC_MissionsTrucking.inc(173) : warning 215: expression has no effect
C:\Users\bijay\Desktop\Trucking\pawno\include\PPC_MissionsTrucking.inc(173) : error 001: expected token: ";", but found ")"
C:\Users\bijay\Desktop\Trucking\pawno\include\PPC_MissionsTrucking.inc(173) : error 029: invalid expression, assumed zero
C:\Users\bijay\Desktop\Trucking\pawno\include\PPC_MissionsTrucking.inc(173) : fatal error 107: too many error messages on one line
The error came from these lines:
pawn Код:
RewardPlayer(playerid, Payment, 0);
format(Message, 128, TXT_RewardJob, Payment);
SendClientMessage(playerid, 0xFFFFFFFF, Message);
And the TXT_RewardJob text is this
pawn Код:
#define TXT_RewardJob "{00FF00}You finished the mission and earned $%i"
I need to fix it urgently so please help me.
Re: [HELP]Error on string message! -
SickAttack - 10.12.2013
Код:
new Message[500];
RewardPlayer(playerid, Payment, 0);
format(Message, 128, TXT_RewardJob, Payment);
SendClientMessage(playerid, 0xFFFFFFFF, Message);
Re: [HELP]Error on string message! -
iOxide - 10.12.2013
Tried that, still the same.
Re: [HELP]Error on string message! -
SickAttack - 10.12.2013
Код:
new Message[100];
RewardPlayer(playerid, Payment, 0);
format(Message,sizeof(Message),"%s - %d",TXT_RewardJob, Payment);
SendClientMessage(playerid, 0xFFFFFFFF, Message);
Re: [HELP]Error on string message! -
iOxide - 10.12.2013
Didn't work, still having same problem :/
Re: [HELP]Error on string message! -
SickAttack - 10.12.2013
Remove this:
Код:
#define TXT_RewardJob "{00FF00}You finished the mission and earned $%i"
And try this:
Код:
new Message[100];
RewardPlayer(playerid, Payment, 0);
format(Message,sizeof(Message),"{00FF00}You finished the mission and earned $%i", Payment);
SendClientMessage(playerid, 0xFFFFFFFF, Message);