input line too long (after substitutions)
#1

Код:
CMD:solanconlai(playerid, params[])
{
	new title[128], string[1028];
	format(title, sizeof(title), "Kiem Tra Tien Trinh Cong Viec - %s", GetPlayerNameEx(playerid));
	format(string, sizeof(string), "Pizza: %d/50 Lan giao banh nua\nTrucker: %d/30 Lan giao hang nua\nNgu Dan: %d/20 Lan ban ca nua\nFram Vat Lieu: %d/100 Lan tra vat lieu\nNong Dan: %d/50 Lan gat lua / giao nong san\nSan Nai: %d/20 Lan ban thit nai nua\nPhuc Vu : %d 20 Lan Phuc vu khach nua",PlayerInfo[playerid][pPizza_Count],PlayerInfo[playerid][pTrucker_Count],PlayerInfo[playerid][pFishing_Count],PlayerInfo[playerid][pMaterial_Count],PlayerInfo[playerid][pFarmer_Count],PlayerInfo[playerid][pNai_Count],PlayerInfo[playerid][pPhucVu_Count]);
	ShowPlayerDialog(playerid, DIALOG_NOTHING, DIALOG_STYLE_MSGBOX, title, string, "Dong", "");
	if(PlayerInfo[playerid][pDonateRank] == 3)
	{
		format(title, sizeof(title), "Kiem Tra Tien Trinh Cong Viec - %s", GetPlayerNameEx(playerid));
		format(string, sizeof(string), "Pizza: %d/75 Lan giao banh nua\nTrucker: %d/50 Lan giao hang nua\nNgu Dan: %d/35 Lan ban ca nua\nFram Vat Lieu: %d/200 Lan tra vat lieu\nNong Dan: %d/75 Lan gat lua\
		\nSan Nai: %d/35 Lan ban thit nai nua\nPhuc Vu : %d/35 Lan phuc vu khach nua",PlayerInfo[playerid][pPizza_Count],PlayerInfo[playerid][pTrucker_Count],PlayerInfo[playerid][pFishing_Count],PlayerInfo[playerid][pMaterial_Count],PlayerInfo[playerid][pFarmer_Count],PlayerInfo[playerid][pNai_Count],PlayerInfo[playerid][pPhucVu_Count]);
		ShowPlayerDialog(playerid, DIALOG_NOTHING, DIALOG_STYLE_MSGBOX, title, string, "Dong", "");
	}
	return 1;
}
Error
Код:
./File/GTA-RP.pwn(123226) : error 075: input line too long (after substitutions)
./File/GTA-RP.pwn(123227) : error 017: undefined symbol "Pla"
./File/GTA-RP.pwn(123228) : warning 217: loose indentation
./File/GTA-RP.pwn(123228) : error 017: undefined symbol "yerInfo"
./File/GTA-RP.pwn(123228) : warning 215: expression has no effect
./File/GTA-RP.pwn(123228) : error 001: expected token: ";", but found "]"
./File/GTA-RP.pwn(123228) : error 029: invalid expression, assumed zero
./File/GTA-RP.pwn(123228) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply
#2

This is fixed in the updated compiler: https://github.com/pawn-lang/compiler/releases
Reply
#3

Quote:
Originally Posted by Burridge
Посмотреть сообщение
This is fixed in the updated compiler: https://github.com/pawn-lang/compiler/releases
Код:
C:\gta-rp.vn\linux\linux\pawno\include\sscanf2.inc(39) : fatal error 111: user error: sscanf (possibly the PAWN version) already defined.

Compilation aborted.

Pawn compiler 3.10.8	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#4

That means you have sscanf defined somewhere else in your code. Removing it should fix that issue, since sscanf2 is far superior to the PAWN version.
Reply
#5

Quote:
Originally Posted by Burridge
Посмотреть сообщение
That means you have sscanf defined somewhere else in your code. Removing it should fix that issue, since sscanf2 is far superior to the PAWN version.
The error in line 39 is that this bug fixes how I tried to delete and compile back so many errors
Код:
#error sscanf (possibly the PAWN version) already defined.
Reply
#6

List all your includes, so that we could sort it out.

And what are the new errors after you removed the sscanf include?
Reply
#7

I didn't say remove the sscanf include, or edit it. I said to remove the sscanf definition from your gamemode file. If you have the PAWN version in your script it'll look something like this: https://sampwiki.blast.hk/wiki/Sscanf_code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)