10.07.2018, 11:45
Hey guys im loosing my head with this warnings, can u help me pls?
my code:
any solution?
Код 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.
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;
}