little help.
#1

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

Reply
#2

In your pInfo enum, SaveposX, SaveposY and SaveposZ are probally not declared with Float: tags.
How to fix:
Add
pawn Код:
Float:
to SaveposX, SaveposY and SaveposZ in your enum
Reply
#3

i have added

Float:SaveposX,
Float:SaveposY,
Float:SaveposZ,

still have the same errors and warrings
Reply
#4

Do the same for the other float variables.
Reply
#5

ok i am down to
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
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(7243) : error 022: must be lvalue (non-constant)
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(7243) : warning 215: expression has no effect
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(7244) : error 022: must be lvalue (non-constant)
C:\Users\CrazyDc\Documents\Server backup\21-12-09\gamemodes\ActiveGamemode.pwn(7244) : warning 215: expression has no effect

code is:
dcmd_setspawn(playerid,params[]) //7235
{
#pragma unused params
new FloatX;
new FloatY;
new FloatZ;
GetPlayerPos(playerid,pX,pY,pZ);
SaveposX = pX;
SaveposY = pY;
SaveposZ = pZ;
SaveStats(playerid);
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)