Please someone help me with ini_
#1

INI_WriteInt(File,"Vehicle1",PlayerInfo[playerid][pVehicle1]);
INI_WriteInt(File,"Vehicle1Model",PlayerInfo[playerid][pVehicle1Model]);
INI_WriteFloat(File,"Vehicle1X",PlayerInfo[playerid][pVehicle1X]);
INI_WriteFloat(File,"Vehicle1Y",PlayerInfo[playerid][pVehicle1Y]);
INI_WriteFloat(File,"Vehicle1Z",PlayerInfo[playerid][pVehicle1Z]);
INI_WriteFloat(File,"Vehicle1C",PlayerInfo[playerid][pVehicle1C]);
INI_WriteInt(File,"Vehicle1Color1",PlayerInfo[playerid][pVehicle1Color1]);
INI_WriteInt(File,"Vehicle1Color2",PlayerInfo[playerid][pVehicle1Color2]);
INI_WriteInt(File,"Vehicle1Value",PlayerInfo[playerid][pVehicle1Value]);
INI_WriteString(File,"Vehicle1Plate",PlayerInfo[playerid][pVehicle1Plate]);
INI_WriteInt(File,"Vehicle1Lock",PlayerInfo[playerid][pVehicle1Lock]);
INI_WriteInt(File,"Vehicle2",PlayerInfo[playerid][pVehicle2]);
INI_WriteInt(File,"Vehicle2Model",PlayerInfo[playerid][pVehicle2Model]);
INI_WriteFloat(File,"Vehicle2X",PlayerInfo[playerid][pVehicle2X]);
INI_WriteFloat(File,"Vehicle2Y",PlayerInfo[playerid][pVehicle2Y]);
INI_WriteFloat(File,"Vehicle2Z",PlayerInfo[playerid][pVehicle2Z]);
INI_WriteFloat(File,"Vehicle2C",PlayerInfo[playerid][pVehicle2C]);
INI_WriteInt(File,"Vehicle2Color1",PlayerInfo[playerid][pVehicle2Color1]);
INI_WriteInt(File,"Vehicle2Color2",PlayerInfo[playerid][pVehicle2Color2]);
INI_WriteInt(File,"Vehicle2Value",PlayerInfo[playerid][pVehicle2Value]);
INI_WriteString(File,"Vehicle2Plate",PlayerInfo[playerid][pVehicle2Plate]);
INI_WriteInt(File,"Vehicle2Lock",PlayerInfo[playerid][pVehicle2Lock]);
INI_WriteInt(File,"Vehicle3",PlayerInfo[playerid][pVehicle3]);
INI_WriteInt(File,"Vehicle3Model",PlayerInfo[playerid][pVehicle3Model]);
INI_WriteFloat(File,"Vehicle3X",PlayerInfo[playerid][pVehicle3X]);
INI_WriteFloat(File,"Vehicle3Y",PlayerInfo[playerid][pVehicle3Y]);
INI_WriteFloat(File,"Vehicle3Z",PlayerInfo[playerid][pVehicle3Z]);
INI_WriteFloat(File,"Vehicle3C",PlayerInfo[playerid][pVehicle3C]);
INI_WriteInt(File,"Vehicle3Color1",PlayerInfo[playerid][pVehicle3Color1]);
INI_WriteInt(File,"Vehicle3Color2",PlayerInfo[playerid][pVehicle3Color2]);
is from this dealership

INI_WriteInt(File,"Vehicle3Value",PlayerInfo[playerid][pVehicle3Value]);
INI_WriteString(File,"Vehicle3Plate",PlayerInfo[playerid][pVehicle3Plate]);
INI_WriteInt(File,"Vehicle3Lock",PlayerInfo[playerid][pVehicle3Lock]);
}

and i get this error please i dunno why and where to put this ini_ please i m used a blown rpg gm
this is the error
C:\Users\User\Downloads\diverse\ruse unic new\gamemodes\begamer.pwn(11627) : error 017: undefined symbol "INI_WriteInt"
C:\Users\User\Downloads\diverse\ruse unic new\gamemodes\begamer.pwn(11627) : warning 215: expression has no effect
C:\Users\User\Downloads\diverse\ruse unic new\gamemodes\begamer.pwn(11627) : error 001: expected token: ";", but found "]"
C:\Users\User\Downloads\diverse\ruse unic new\gamemodes\begamer.pwn(11627) : error 029: invalid expression, assumed zero
C:\Users\User\Downloads\diverse\ruse unic new\gamemodes\begamer.pwn(11627) : fatal error 107: too many error messages on one line


JUST PLEASE TELL ME WHERE I NEED TO PUT THOSE 2 (INI_)
Reply
#2

Quote:

#include <YSI\y_ini>

At the top of scripts.

KillerDVX,
Reply
#3

Quote:
Originally Posted by KillerDVX
Посмотреть сообщение
At the top of scripts.

KillerDVX,
where? before main ? or after ?
#include <YSI\y_ini> from where i can get that and how i can do this i put #include <YSI\y_ini> on my top of gm but i dont have the YSI\y_ini include a link to download or how can do please that will bring to my server 50-100 more players i already have 70-80 daily
Reply
#4

Here you go the include download : https://sampforum.blast.hk/showthread.php?tid=570957

And put #include <YSI\y_ini> on the top of your GM.

Hope it helps.

KillerDVX,
Reply
#5

You need this include: https://sampforum.blast.hk/showthread.php?tid=570883
Or simply download YSI folder and YSI.inc from here: https://github.com/Misiur/YSI/tree/master/pawno/include
and then put these files in ../pawno/includes folder.

Add this line under a_samp.inc:
Код:
#include <YSI\y_ini>
EDIT: Now saw that you're talking about where the code above have to be added:
Quote:
Originally Posted by DanishHaq
The following, you need to add under the response to where the player gets registered on the server, and a new file will be created:
Код:
INI_Int("Vehicle1",PlayerInfo[playerid][pVehicle1]);
...
Reply
#6

i fixed this error i think i put the include on pawno folder and after that i get error 017: undefined symbol "total" why? before to put this include on pawno wasn't error there now is how can i fix that i can give you code
Reply
#7

i inserted YSI\y_ini and now i get this without any new script just my old one i just put on my gm define YSI\y_ini and after i compile just to see i get this errors i say again with same script if i delete define with YSI no errors look my erros C:\Users\User\Downloads\diverse\ruse unic new\pawno\include\YSI\y_hooks/impl.inc(1755) : error 025: function heading differs from prototype
C:\Users\User\Downloads\diverse\ruse unic new\pawno\include\YSI\y_hooks/impl.inc(2342) : error 025: function heading differs from prototype
C:\Users\User\Downloads\diverse\ruse unic new\pawno\include\YSI\y_hooks/impl.inc(2389) : error 025: function heading differs from prototype
C:\Users\User\Downloads\diverse\ruse unic new\pawno\include\YSI\y_hooks/impl.inc(2434) : error 010: invalid function or declaration
C:\Users\User\Downloads\diverse\ruse unic new\pawno\include\YSI\y_hooks/impl.inc(2530) : error 010: invalid function or declaration
C:\Users\User\Downloads\diverse\ruse unic new\gamemodes\begamer.pwn(317) : error 025: function heading differs from prototype
C:\Users\User\Downloads\diverse\ruse unic new\gamemodes\begamer.pwn(20282) : error 025: function heading differs from prototype
C:\Users\User\Downloads\diverse\ruse unic new\gamemodes\begamer.pwn(21971) : error 035: argument type mismatch (argument 2)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)