Y_INI argument type mismatch
#1

Hey I am creating a housing system and I am getting argument type mismatch errors, here is my full compile log:
Код:
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(40) : warning 201: redefinition of constant/macro (symbol "strcpy(%0,%1,%2)")
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(5216) : error 035: argument type mismatch (argument 1)
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(5217) : error 035: argument type mismatch (argument 1)
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(5218) : error 035: argument type mismatch (argument 1)
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(5219) : error 035: argument type mismatch (argument 1)
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(5220) : error 035: argument type mismatch (argument 1)
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(5221) : error 035: argument type mismatch (argument 1)
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(5222) : error 035: argument type mismatch (argument 1)
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(5223) : error 035: argument type mismatch (argument 1)
Y:\Documents\SpectralRP\gamemodes\spectralrp.pwn(5224) : error 035: argument type mismatch (argument 1)
Also about the first warning here is the line for that I am fairly sure it has not been redefined
pawn Код:
#define strcpy(%0,%1,%2) %0="",strcat(%0,%2,%1)
And here is the errors relating to Y_INI
pawn Код:
INI_WriteInt(file, "Price", HousePrice);
    INI_WriteInt(file, "Owned", 0);
    INI_WriteInt(file, "VirtualWorld", GetPlayerVirtualWorld(playerid));
    INI_WriteFloat(file, "XPos", x);
    INI_WriteFloat(file, "YPos", y);
    INI_WriteFloat(file, "ZPos", z);
    INI_WriteString(file, "Owner", "nobody");
Any help is greatly appreciated
Reply
#2

Show how are you defining an 'x' variable. Is it have a Float: tag before?
Reply
#3

Example
PHP код:
 INI_WriteFloat(playerFile"LastX"PlayerInfo[playerid][pLastX]);
    
INI_WriteFloat(playerFile"LastY"PlayerInfo[playerid][pLastY]);
    
INI_WriteFloat(playerFile"LastZ"PlayerInfo[playerid][pLastZ]); 
Reply
#4

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
Show how are you defining an 'x' variable. Is it have a Float: tag before?
Here is how I am creating the x, y and z pos:
pawn Код:
new Float:x,Float:y,Float:z;
Reply
#5

Quote:
Originally Posted by ******
Посмотреть сообщение
Firstly your version of "strcpy" looks like a (frankly) mangled version of the normal one - delete it and use the one from YSI. Secondly, is "file" a string or an "INI:" handle (it should be the latter, I suspect it's the former).
Thanks so much ****** I suppose support is always better coming from he who created the system I am being stupid with
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)