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)
#define strcpy(%0,%1,%2) %0="",strcat(%0,%2,%1)
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");
INI_WriteFloat(playerFile, "LastX", PlayerInfo[playerid][pLastX]);
INI_WriteFloat(playerFile, "LastY", PlayerInfo[playerid][pLastY]);
INI_WriteFloat(playerFile, "LastZ", PlayerInfo[playerid][pLastZ]);
Show how are you defining an 'x' variable. Is it have a Float: tag before?
|
new Float:x,Float:y,Float:z;
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).
|