22.12.2009, 05:27
Hello there, i have a error that i dont know what to do to sort it.
errors are:
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(4110) : warning 213: tag mismatch
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(4111) : warning 213: tag mismatch
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(4112) : warning 213: tag mismatch
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(7240) : error 022: must be lvalue (non-constant)
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(7240) : warning 215: expression has no effect
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(7241) : error 022: must be lvalue (non-constant)
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(7241) : warning 215: expression has no effect
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(7242) : error 022: must be lvalue (non-constant)
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(7242) : warning 215: expression has no effect
here is the two parts:
public SaveStats(playerid)
{
AccountInfo[playerid][SaveposX] = SaveposX;// 4110 line
AccountInfo[playerid][SaveposY] = SaveposY;//4111 line
AccountInfo[playerid][SaveposZ] = SaveposZ; //4112 line
return 1;
}
dcmd_setspawn(playerid,params[])
{
#pragma unused params
new FloatX;// 7236
new FloatY;
new FloatZ;
GetPlayerPos(playerid,pX,pY,pZ);
SaveposX = pX;
SaveposY = pY;
SaveposZ = pZ;
SaveStats(playerid);
return 1;
} any help would be great
errors are:
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(4110) : warning 213: tag mismatch
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(4111) : warning 213: tag mismatch
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(4112) : warning 213: tag mismatch
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(7240) : error 022: must be lvalue (non-constant)
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(7240) : warning 215: expression has no effect
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(7241) : error 022: must be lvalue (non-constant)
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(7241) : warning 215: expression has no effect
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(7242) : error 022: must be lvalue (non-constant)
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(7242) : warning 215: expression has no effect
here is the two parts:
public SaveStats(playerid)
{
AccountInfo[playerid][SaveposX] = SaveposX;// 4110 line
AccountInfo[playerid][SaveposY] = SaveposY;//4111 line
AccountInfo[playerid][SaveposZ] = SaveposZ; //4112 line
return 1;
}
dcmd_setspawn(playerid,params[])
{
#pragma unused params
new FloatX;// 7236
new FloatY;
new FloatZ;
GetPlayerPos(playerid,pX,pY,pZ);
SaveposX = pX;
SaveposY = pY;
SaveposZ = pZ;
SaveStats(playerid);
return 1;
} any help would be great