Jump to content

Question

Posted (edited)

Salut, am si eu o problema cu include ul y_ini. Primesc eroare "error 035: argument type mismatch (argument 1)" cand Incerc sa folosesc INI_Int. Stie cineva de ce? 

function LoadInfo_data(playerid, name[], value[]) {
    INI_Int("Methylamine", PI[playerid][ppMethalyne]);
    INI_Int("Phenylacetone", PI[playerid][ppPheny]);
    INI_Int("Gasoline", PI[playerid][ppGasoline]);
    INI_Int("Meth", PI[playerid][ppMeth]);
    INI_Int("MethT", PI[playerid][ppMethTime]);
    INI_Int("Radio", PI[playerid][ppRadioactive]);
    INI_Int("Storage", PI[playerid][ppStorage]);
    INI_Int("Cooker", PI[playerid][ppCooker]);
    INI_Int("Staff", PI[playerid][ppStaff]);
    //INI_Int("PersonalVeh", PI[playerid][ppPersVeh]);
    INI_Int("PersonalVeh", PI[playerid][ppPersVeh]);
    return 1;
}

image.png.c9041dbf8adeea53a262546309138653.png

 

Edited by Miki DUTZA

3 answers to this question

Recommended Posts

  • 0
Posted
17 hours ago, Miki DUTZA said:

Salut, am si eu o problema cu include ul y_ini. Primesc eroare "error 035: argument type mismatch (argument 1)" cand Incerc sa folosesc INI_Int. Stie cineva de ce? 

function LoadInfo_data(playerid, name[], value[]) {
    INI_Int("Methylamine", PI[playerid][ppMethalyne]);
    INI_Int("Phenylacetone", PI[playerid][ppPheny]);
    INI_Int("Gasoline", PI[playerid][ppGasoline]);
    INI_Int("Meth", PI[playerid][ppMeth]);
    INI_Int("MethT", PI[playerid][ppMethTime]);
    INI_Int("Radio", PI[playerid][ppRadioactive]);
    INI_Int("Storage", PI[playerid][ppStorage]);
    INI_Int("Cooker", PI[playerid][ppCooker]);
    INI_Int("Staff", PI[playerid][ppStaff]);
    //INI_Int("PersonalVeh", PI[playerid][ppPersVeh]);
    INI_Int("PersonalVeh", PI[playerid][ppPersVeh]);
    return 1;
}

image.png.c9041dbf8adeea53a262546309138653.png

 

Ce versiune de Y_INI ai?

  • 0
Posted
1 hour ago, Miki DUTZA said:

ultima versiune.

Incearca sa folosesti in felul urmator:

Quote
forward LoadInfo_data(playerid, name[], value[]);
public LoadInfo_data(playerid, name[], value[]){
    //ce ai tu nevoie
}

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.