16.10.2012, 16:39
Hey I am creating a housing system and I am getting argument type mismatch errors, here is my full compile log:
Also about the first warning here is the line for that I am fairly sure it has not been redefined
And here is the errors relating to Y_INI
Any help is greatly appreciated
Код:
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)
pawn Код:
#define strcpy(%0,%1,%2) %0="",strcat(%0,%2,%1)
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");