SA-MP Forums Archive
error when called stock - 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: error when called stock (/showthread.php?tid=601224)



[solved]error when called stock - ratxrat - 18.02.2016

im create save ini stock when im put stock at OnPlayerDisconnect show error massage.

Quote:

D:\server\ratxrat\gamemodes\tes.pwn(5707) : error 001: expected token: ",", but found ";"
D:\server\ratxrat\gamemodes\tes.pwn(570 : error 001: expected token: ",", but found ";"
D:\server\ratxrat\gamemodes\tes.pwn(5709) : error 001: expected token: ",", but found ";"
D:\server\ratxrat\gamemodes\tes.pwn(5710) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

this my stock code
Код:
stock SaveInventori(playerid)
{
    new file4[40];
	format(file4, sizeof(file4), korong, playerid);
	new INI:File = INI_Open(file4);
	INI_SetTag(File,"data");
	INI_WriteInt(File,"invSlot", pInventory[playerid][invSlot];
	INI_WriteInt(File,"invSelectedSlot", pInventory[playerid][invSelectedSlot];
	INI_WriteInt(File,"invSlotAmount", pInventory[playerid][invSlotAmount];
	INI_WriteFloat(File,"invArmourStatus", pInventory[playerid][invArmourStatus];
	
	INI_Close(File);
	return 1;
}
if not put SaveInventori(playerid); to callback no error massage . where the problem ?


Re: error when called stock - J0sh... - 18.02.2016

PHP код:
    INI_WriteInt(File,"invSelectedSlot"pInventory[playerid][invSelectedSlot];
    
INI_WriteInt(File,"invSlotAmount"pInventory[playerid][invSlotAmount];
    
INI_WriteFloat(File,"invArmourStatus"pInventory[playerid][invArmourStatus]; 
You're missing the closing brackets.


Re: error when called stock - ratxrat - 18.02.2016

yay thanks for help. my font to small hahha