warning 213: tag mismatch -
Jaua10 - 10.07.2018
Hey guys im loosing my head with this warnings, can u help me pls?
Код HTML:
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(175) : warning 235: public function lacks forward declaration (symbol "CustomPickups")
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(179) : warning 213: tag mismatch
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(183) : warning 213: tag mismatch
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(187) : warning 213: tag mismatch
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(191) : warning 213: tag mismatch
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(195) : warning 213: tag mismatch
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(199) : warning 213: tag mismatch
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(203) : warning 213: tag mismatch
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(207) : warning 213: tag mismatch
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(211) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
10 Warnings.
my code:
PHP код:
public CustomPickups(playerid, newstate)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerInRangeOfPoint(2.0, i, 1173.2563,-1323.3102,15.3943))
{// Hospital near Ammu
GameTextForPlayer(i, "~w~Type /healme to cure yourself", 5000, 5);
}
else if (IsPlayerInRangeOfPoint(2.0, i, 2029.5945,-1404.6426,17.2512))
{// Hospital near speedway
GameTextForPlayer(i, "~w~Type /healme to cure yourself", 5000, 5);
}
else if (GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(2.0, i,2226.1716,-1718.1792,13.5165))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Body Guard~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
}
else if (GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(2.0, i,1493.2681,-1771.5118,18.7958))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Lawyer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
}
else if (GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(2.0, i,2166.3772,-1675.3829,15.0859))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Drugs Dealer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
}
else if (GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(2.0, i,2537.9221,-1352.2784,30.8581))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Car Mechanic~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
}
else if (GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(2.0, i,1366.4325,-1275.2096,13.5469))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Arms Dealer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
}
else if (GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(3.0, i, 2088.8499,-1187.2502,26.0547))
{
GameTextForPlayer(i, "~w~Welcome to The ~p~Ballas Head Quarters ~w~ Type /joinballas to Join ~p~ Ballas", 5000, 5);
}
else if (GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(3.0, i, 2468.9023,-1292.6802,29.8150))
{
GameTextForPlayer(i, "~w~Welcome To ~y~Los Santos Vagos Head Quarters ~w~Type /joinvagos To Join ~y~Los Santos Vagos", 5000, 5);
}
}
return 1;
}
any solution?
Re: warning 213: tag mismatch -
Florin48 - 10.07.2018
Does it go if you delete [newstate] from [CustomPickups (playerid, newstate)]?
Re: warning 213: tag mismatch -
Jaua10 - 10.07.2018
no, it gives the same 10 warnings, any other help?
Re: warning 213: tag mismatch -
Florin48 - 10.07.2018
the function was declared above with [ forward CustomPickups(playerid, newstate); ] ?
Re: warning 213: tag mismatch -
Jaua10 - 10.07.2018
no, what i have to do?
Re: warning 213: tag mismatch -
Florin48 - 10.07.2018
Above to [ public CustomPickups(playerid, newstate) ... ]
you will put [ forward CustomPickups(playerid, newstate); ]
try this
Re: warning 213: tag mismatch -
Jaua10 - 10.07.2018
NOW I GOT 9 WARNINGS
PHP код:
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(179) : warning 213: tag mismatch
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(183) : warning 213: tag mismatch
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(187) : warning 213: tag mismatch
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(191) : warning 213: tag mismatch
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(195) : warning 213: tag mismatch
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(199) : warning 213: tag mismatch
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(203) : warning 213: tag mismatch
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(207) : warning 213: tag mismatch
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(211) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Warnings.
Re: warning 213: tag mismatch -
Florin48 - 10.07.2018
try now
PHP код:
public CustomPickups(playerid, newstate)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 3.0, 1173.2563,-1323.3102,15.3943))
{// Hospital near Ammu
GameTextForPlayer(i, "~w~Type /healme to cure yourself", 5000, 5);
}
else if(IsPlayerInRangeOfPoint(i, 3.0, 2029.5945,-1404.6426,17.2512))
{// Hospital near speedway
GameTextForPlayer(i, "~w~Type /healme to cure yourself", 5000, 5);
}
else if(GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(i,3.0, 2226.1716,-1718.1792,13.5165))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Body Guard~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
}
else if(GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(i,3.0, 1493.2681,-1771.5118,18.7958))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Lawyer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
}
else if(GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(i,3.0, 166.3772,-1675.3829,15.0859))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Drugs Dealer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
}
else if(GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(i,3.0, 2537.9221,-1352.2784,30.8581))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Car Mechanic~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
}
else if(GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(i,3.0, 1366.4325,-1275.2096,13.5469))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Arms Dealer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
}
else if(GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(i, 3.0, 2088.8499,-1187.2502,26.0547))
{
GameTextForPlayer(i, "~w~Welcome to The ~p~Ballas Head Quarters ~w~ Type /joinballas to Join ~p~ Ballas", 5000, 5);
}
else if(GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(i, 3.0, 2468.9023,-1292.6802,29.8150))
{
GameTextForPlayer(i, "~w~Welcome To ~y~Los Santos Vagos Head Quarters ~w~Type /joinvagos To Join ~y~Los Santos Vagos", 5000, 5);
}
}
return 1;
}
Re: warning 213: tag mismatch -
Jaua10 - 10.07.2018
Good i have no errors but dont show to me or players the text i put, what can i do pal?
Re: warning 213: tag mismatch -
Florin48 - 10.07.2018
you have a timer by 1 sec in your gamemode?