SA-MP Forums Archive
Fromat a string - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Fromat a string (/showthread.php?tid=259259)



Fromat a string - Kastranova - 03.06.2011

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


Re: Fromat a string - Sascha - 03.06.2011

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



Re: Fromat a string - Kastranova - 03.06.2011

Nope sorry didnit solve it :S


Re: Fromat a string - Kastranova - 03.06.2011

NVM, Problem solved