18.02.2016, 16:21
(
Последний раз редактировалось ratxrat; 18.02.2016 в 16:38.
Причина: solved
)
im create save ini stock when im put stock at OnPlayerDisconnect show error massage.
this my stock code
if not put SaveInventori(playerid); to callback no error massage . where the problem ?
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. |
Код:
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; }