Tag mismatch - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Tag mismatch (
/showthread.php?tid=599611)
Tag mismatch -
123ran1 - 28.01.2016
i am getting some tag mismatch errors and i cant figure out why.
the first 8 warnings are for the spawncar command and the last one is for sethealth command. For some reason it is always when im using floats.
C:\Users\Randy\Desktop\SA-MP Server\gamemodes\Randy.pwn(500) : warning 213: tag mismatch
C:\Users\Randy\Desktop\SA-MP Server\gamemodes\Randy.pwn(500) : warning 213: tag mismatch
C:\Users\Randy\Desktop\SA-MP Server\gamemodes\Randy.pwn(500) : warning 213: tag mismatch
C:\Users\Randy\Desktop\SA-MP Server\gamemodes\Randy.pwn(501) : warning 213: tag mismatch
C:\Users\Randy\Desktop\SA-MP Server\gamemodes\Randy.pwn(503) : warning 213: tag mismatch
C:\Users\Randy\Desktop\SA-MP Server\gamemodes\Randy.pwn(503) : warning 213: tag mismatch
C:\Users\Randy\Desktop\SA-MP Server\gamemodes\Randy.pwn(503) : warning 213: tag mismatch
C:\Users\Randy\Desktop\SA-MP Server\gamemodes\Randy.pwn(503) : warning 213: tag mismatch
C:\Users\Randy\Desktop\SA-MP Server\gamemodes\Randy.pwn(669) : warning 213: tag mismatch
Код:
CMD:sethealth(playerid, params[])
{
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][AdminLevel] >= 1){
new targetid, float:health;
if(sscanf(params, "uf", targetid, health)) return SendClientMessage(playerid,COLOR_WHITE,""WHITE"Usage: "GREEN"/Sethealth "WHITE"[playerid] [health]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_WHITE,""WHITE"Invalide Player ID"RED"(Player is not connected)");
SetPlayerHealth(targetid, health);
}
return 1;
}
Код:
CMD:spawncar(playerid)
{
new float:pX, float:pY, float:pZ, float:pA;
GetPlayerPos(playerid, pX,pY,pZ);
GetPlayerFacingAngle(playerid,pA);
new vehicle;
vehicle = CreateVehicle(411,pX,pY,pZ,pA,-1,-1,-1,0);
PutPlayerInVehicle(playerid, vehicle, 0);
return 1;
}
Re: Tag mismatch -
SystemX - 28.01.2016
Well, I know this may work or may not but trying renaming, "float" to "Float". Replace 'f' with capital 'F'
Re: Tag mismatch -
123ran1 - 28.01.2016
Quote:
Originally Posted by SystemX
Well, I know this may work or may not but trying renaming, "float" to "Float". Replace 'f' with capital 'F'
|
Wow! i cant believe thats all it was. Thank you
Re: Tag mismatch -
SystemX - 29.01.2016
Quote:
Originally Posted by 123ran1
Wow! i cant believe thats all it was. Thank you
|
Ow.. Welcome..