warnings
#1

hello all, i've got these warnings:
Code:
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1394) : warning 213: tag mismatch
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1394) : warning 213: tag mismatch
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1394) : warning 213: tag mismatch
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1395) : warning 213: tag mismatch
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1406) : warning 213: tag mismatch
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(2215) : warning 202: number of arguments does not match definition
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(2215) : warning 202: number of arguments does not match definition
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(2215) : warning 202: number of arguments does not match definition
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(2296) : warning 202: number of arguments does not match definition
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(3939) : warning 213: tag mismatch
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(3940) : warning 213: tag mismatch
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(3941) : warning 213: tag mismatch
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(3942) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


13 Warnings.
these are my lines:
1394 GetPlayerPos( playerid, PlayerInfo[playerid][PosX], PlayerInfo[playerid][PosY], PlayerInfo[playerid][PosZ] );
1395 GetPlayerFacingAngle( playerid, PlayerInfo[playerid][Angle] );

1406 INI_WriteInt(File,"Rank",PlayerInfo[playerid][fRank]);

Code:
CMD:mdc(playerid, params[])
{
	new targetid;
	new targetn[MAX_PLAYER_NAME];
	new playern[MAX_PLAYER_NAME];
	new str[800];
	GetPlayerName(targetid, targetn, MAX_PLAYER_NAME);
	GetPlayerName(playerid, playern, MAX_PLAYER_NAME);
	if(PlayerInfo[playerid][pFaction] != 1) return SendClientMessage(playerid, -1, "Nu esti politist.");
	if(sscanf(params,"u",targetid)) return SendClientMessage(playerid, COLOR_PURPLE, "!{FFFFFF}: /mdc [playerid]");
	if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_PURPLE, "!{FFFFFF}: Nu se poate identifica numele dat! (( ID Invalid ))");
	format(str, sizeof(str), "> Mobile Computer Data...");
	SendClientMessage(playerid, -1, str);
	format(str, sizeof(str), "> (( Date id %d ))", targetid);
	SendClientMessage(playerid, -1, str);
	format(str, sizeof(str), "> CNP: %d", PlayerInfo[targetid][pCNP]);
	SendClientMessage(playerid, -1, str);
	format(str, sizeof(str), "> Bani in cont bancar: %d", PlayerInfo[targetid][pBank]);
	SendClientMessage(playerid, -1, str);
	format(str, sizeof(str), "> Arestat: %d", PlayerInfo[targetid][pJailed]);
	SendClientMessage(playerid, -1, str);
	format(str, sizeof(str), "> In urmarire: %d", PlayerInfo[targetid][pSearched]);
	SendClientMessage(playerid, -1, str);
	format(str, sizeof(str), "> Casa detinuta: %d", PlayerInfo[targetid][pHouse]);
	SendClientMessage(playerid, -1, str);
2215	format(str, sizeof(str), "> Coordonatele actuale: %d", GetPlayerPos(targetid));
	SendClientMessage(playerid, -1, str);
	format(str, sizeof(str), "> Telefon detinut: %d", PhoneInfo[targetid][pOwned]);
	SendClientMessage(playerid, -1, str);
	format(str, sizeof(str), "> Numar de telefon: %d", PhoneInfo[targetid][pNumber]);
	SendClientMessage(playerid, -1, str);
	format(str, sizeof(str), "%s deschide computerul portabil.", playern);
	ProxDetector(50.00, playerid,str,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
	return 1;
}
3939 - 3942 INI_Float( "PositionX", PlayerInfo[playerid][PosX]);
INI_Float( "PositionY", PlayerInfo[playerid][PosY]);
INI_Float( "PositionZ", PlayerInfo[playerid][PosZ]);
INI_Float( "Angle", PlayerInfo[playerid][Angle]);
These warnings bugs mine server.

Already, I have another one question:
I have made some faction cars that can be used ONLY by members of him. Now, the question is, how I can make that system to work ONLY with created cars, and not with all of the model?
Code:
stock IsEQPCar(vehicleid)
{
    switch(GetVehicleModel(vehicleid))
    {
        case 523,427,528,596,598,597,599,601,497,430: return 1; //checks if the vehicle id is a faction restricted vehicle
    }
    return 0;
}

stock IsEQNVan(vehicleid)
{
	switch(GetVehicleModel(vehicleid))
	{
	    case 582: return 1;
	}
	return 0;
}

stock IsEQMSCar(vehicleid)
{
	switch(GetVehicleModel(vehicleid))
	{
	    case 482,416: return 1;
	}
	return 0;
}
Preview, that only checks if the vehicle is type of ---- . Now, I want to make ONLY for created vehicles of the type. Maybe I can do this with something like GetVehicleID and to check the vehicleid of the car...? I will take down the script in the gamemodeinit for ems cars:
Code:
new EQMSCar[52];
	EQMSCar[0] = AddStaticVehicle(416,-1528.3827,2524.7981,55.7880,0.9463,1,0);
	EQMSCar[1] = AddStaticVehicle(416,-1525.5758,2524.8955,55.7723,358.1263,1,0);
	EQMSCar[2] = AddStaticVehicle(416,-1522.4017,2524.6704,55.7188,1.5730,1,0);
	EQMSCar[3] = AddStaticVehicle(482,-1519.2555,2524.2451,55.6918,356.2462,0,0);
	new RB[4];
	RB[0] = AddStaticVehicle(416,-1608.7307,749.3886,-5.0919,178.5065,1,3); //
	RB[1] = AddStaticVehicle(416,-1604.3864,749.3472,-5.0904,180.3339,1,3); //
	RB[2] = AddStaticVehicle(416,-1600.1649,749.6853,-5.0877,179.9076,1,3); //
	RB[3] = AddStaticVehicle(416,-1596.1364,749.9023,-5.0854,180.0055,1,3); //
	new RA[4];
	RA[0] = AddStaticVehicle(416,-1591.9221,750.0801,-5.0619,180.2197,3,1); //
	RA[1] = AddStaticVehicle(416,-1591.9076,750.0822,-5.0630,180.6902,3,1); //
	RA[2] = AddStaticVehicle(416,-1584.1786,750.2296,-5.0720,178.9902,3,1); //
	RA[3] = AddStaticVehicle(416,-1579.6851,750.2241,-5.0524,178.8918,3,1); //
	new HSU[8];
	HSU[0] = AddStaticVehicle(522,-1575.9110,753.1176,-5.6837,272.9220,3,3); //
	HSU[1] = AddStaticVehicle(522,-1572.7377,752.1411,-5.7080,237.5038,3,3); //
	HSU[2] = AddStaticVehicle(522,-1570.5398,749.5024,-5.6742,200.3303,3,3); //
	HSU[3] = AddStaticVehicle(522,-1569.7175,746.3716,-5.6762,176.7560,3,3); //
	HSU[4] = AddStaticVehicle(521,-1575.2533,748.2662,-5.6785,178.4236,3,3); //
	HSU[5] = AddStaticVehicle(560,-1573.2896,742.7807,-5.5376,90.0305,3,3); //
	HSU[6] = AddStaticVehicle(560,-1573.0483,738.5870,-5.5362,89.8806,3,3); //
	HSU[7] = AddStaticVehicle(560,-1573.0483,738.5870,-5.5362,89.8806,3,1); //
	new CORONERS[3];
	CORONERS[0] = AddStaticVehicle(482,-1573.1542,730.4694,-5.1251,90.0162,0,0); //
	CORONERS[1] = AddStaticVehicle(482,-1572.9550,726.6121,-5.1215,89.9419,0,0); //
	CORONERS[2] = AddStaticVehicle(482,-1572.9269,722.2976,-5.1183,88.4808,0,0); //
	new DELTA[2];
	DELTA[0] = AddStaticVehicle(490,-1572.9537,718.3771,-5.1152,90.8152,155,1); //
	DELTA[1] = AddStaticVehicle(490,-1573.2819,714.4069,-5.1115,87.9162,155,1); //
	new SU[1];
	SU[0] = AddStaticVehicle(490,-1573.1317,710.1724,-5.1133,90.5386,190,1); //
	new COMMAND[1];
	COMMAND[0] = AddStaticVehicle(560,-1572.7283,706.1068,-5.5346,89.5728,175,175); //
	new HC[4];
	HC[0] = AddStaticVehicle(598,-1589.9370,716.5801,-5.4964,229.9618,3,1); //
	HC[1] = AddStaticVehicle(598,-1590.6158,707.8369,-5.4912,267.6264,3,1); //
	HC[2] = AddStaticVehicle(598,-1596.0095,692.9176,-5.5143,182.7626,3,1); //
	HC[3] = AddStaticVehicle(598,-1600.3860,693.0850,-5.4955,178.6467,3,1); //
	new SAR[1];
	SAR[0] = AddStaticVehicle(556,-1606.1863,675.8759,-4.8672,309.1496,3,3); //
	new FD[3];
	FD[0] = AddStaticVehicle(601,-1604.5316,692.9114,-5.4824,179.3139,3,3); //
	FD[1] = AddStaticVehicle(544,-1623.1743,659.7960,-5.0065,39.9742,3,1); //
	FD[2] = AddStaticVehicle(544,-1600.0597,678.6606,-5.0035,0.8337,3,1); //
	new ENGINE[2];
	ENGINE[0] = AddStaticVehicle(544,-1595.8619,678.6473,-5.0031,357.5110,3,1); //
	ENGINE[1] = AddStaticVehicle(544,-1576.8389,690.4564,-5.0075,318.2571,3,1); //
And that's all I've need. Thanks!
Reply
#2

Show me where you defined these: posx, posy, posz & angle.
Reply
#3

Quote:
Originally Posted by iLearner
View Post
Show me where you defined these: posx, posy, posz & angle.
enum pInfo
{
Name[MAX_PLAYER_NAME],
pPass[129],
pCash,
pSkin,
pAdmin,
pTester,
pFaction,
pLeader,
pDonor,
pDeveloper,
pKills,
pDeaths,
lastpos,
DT,
DTT,
ADT,
pJailed,
pAjailed,
pCuffed,
pBanned,
pToggledB,
pToggledAO,
pToggledAA,
pTaser,
pTasered,
PosX,
PosY,
PosZ,
Angle,
pCNP,
pMuted,
pBank,
pSearched,
pHouse
}
Reply
#4

enum pInfo
{
Name[MAX_PLAYER_NAME],
pPass[129],
pCash,
pSkin,
pAdmin,
pTester,
pFaction,
pLeader,
pDonor,
pDeveloper,
pKills,
pDeaths,
lastpos,
DT,
DTT,
ADT,
pJailed,
pAjailed,
pCuffed,
pBanned,
pToggledB,
pToggledAO,
pToggledAA,
pTaser,
pTasered,
Float:PosX,
Float:PosY,
Float:PosZ,
Float:Angle,

pCNP,
pMuted,
pBank,
pSearched,
pHouse
}
Reply
#5

Quote:
Originally Posted by iLearner
View Post
enum pInfo
{
Name[MAX_PLAYER_NAME],
pPass[129],
pCash,
pSkin,
pAdmin,
pTester,
pFaction,
pLeader,
pDonor,
pDeveloper,
pKills,
pDeaths,
lastpos,
DT,
DTT,
ADT,
pJailed,
pAjailed,
pCuffed,
pBanned,
pToggledB,
pToggledAO,
pToggledAA,
pTaser,
pTasered,
Float:PosX,
Float:PosY,
Float:PosZ,
Float:Angle,

pCNP,
pMuted,
pBank,
pSearched,
pHouse
}
Thanks, that reduced my number of warnings but now is 13. Do you know how to resolve the other one?
Reply
#6

Show me the warnings & line. (maybe full cmd / stock)
Reply
#7

Quote:
Originally Posted by iLearner
View Post
Show me the warnings & line. (maybe full cmd / stock)
1394 GetPlayerPos( playerid, PlayerInfo[playerid][PosX], PlayerInfo[playerid][PosY], PlayerInfo[playerid][PosZ] );
1395 GetPlayerFacingAngle( playerid, PlayerInfo[playerid][Angle] );

1406 INI_WriteInt(File,"Rank",PlayerInfo[playerid][fRank]);

C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1394) : warning 213: tag mismatch
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1394) : warning 213: tag mismatch
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1394) : warning 213: tag mismatch
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1395) : warning 213: tag mismatch
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(1406) : warning 213: tag mismatch
and more warnings are in the first message from mine
Reply
#8

Try doing it like this;
new Float:x, Float:y, Float:z, Float:a;
Code:
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
PlayerInfo[playerid][PosX] = x;
PlayerInfo[playerid][PosY] = y;
PlayerInfo[playerid][PosZ] = z;
PlayerInfo[playerid][Angle] = a;
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)