Fromat a string
#1

Can somebody help me with the following bug, I can't solve the problem :S
Код:
format(AddBizzInfo[playerid][abString], sizeof(AddBizzInfo[playerid][abString]), "24/7 - 1 \n24/7 - 2 /n24/7 - 3 /n24/7 - 4 /n24/7 - 5 /n24/7 - 6");
The AddBizzInfo variables
Код:
enum abInfo
{
    abOwned,
	abOwner[64],
	abType,
	abMessage[128],
	abExtortion[MAX_PLAYER_NAME],
	Float:abEntranceX,
	Float:abEntranceY,
	Float:abEntranceZ,
	Float:abExitX,
	Float:abExitY,
	Float:abExitZ,
	abLevelNeeded,
	abBuyPrice,
	abEntranceCost,
	abTill,
	abLocked,
	abInterior,
	abProducts,
	abMaxProducts,
	abPriceProd,
	abStep,
	abString[256]
};
new AddBizzInfo[MAX_PLAYERS][abInfo];
And the error codes

Код:
C:\Documents and Settings\PC 01\Bureaublad\samp03csvr_RC6_win32\gamemodes\larp.pwn(41462) : error 001: expected token: "]", but found "-identifier-"
C:\Documents and Settings\PC 01\Bureaublad\samp03csvr_RC6_win32\gamemodes\larp.pwn(41462) : warning 215: expression has no effect
C:\Documents and Settings\PC 01\Bureaublad\samp03csvr_RC6_win32\gamemodes\larp.pwn(41462) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\PC 01\Bureaublad\samp03csvr_RC6_win32\gamemodes\larp.pwn(41462) : error 029: invalid expression, assumed zero
C:\Documents and Settings\PC 01\Bureaublad\samp03csvr_RC6_win32\gamemodes\larp.pwn(41462) : fatal error 107: too many error messages on one line
Thnak you,
Kastranova
Reply
#2

pawn Код:
format(AddBizzInfo[playerid][abString], 256, "24/7 - 1 \n24/7 - 2 /n24/7 - 3 /n24/7 - 4 /n24/7 - 5 /n24/7 - 6");
Reply
#3

Nope sorry didnit solve it :S
Reply
#4

NVM, Problem solved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)