error when called stock
#1

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 ?
Reply
#2

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.
Reply
#3

yay thanks for help. my font to small hahha
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)