warning 213: tag mismatch
#1

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(playeridnewstate)
{
    for(new 
0MAX_PLAYERSi++)
    {
            if (
IsPlayerInRangeOfPoint(2.0i1173.2563,-1323.3102,15.3943))
            {
// Hospital near Ammu
                
GameTextForPlayer(i"~w~Type /healme to cure yourself"50005);
            }
            else if (
IsPlayerInRangeOfPoint(2.0i2029.5945,-1404.6426,17.2512))
            {
// Hospital near speedway
                
GameTextForPlayer(i"~w~Type /healme to cure yourself"50005);
            }
            else if (
GetPlayerState(i) == && IsPlayerInRangeOfPoint(2.0i,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"50003);
            }
            else if (
GetPlayerState(i) == && IsPlayerInRangeOfPoint(2.0i,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"50003);
            }
            else if (
GetPlayerState(i) == && IsPlayerInRangeOfPoint(2.0i,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"50003);
            }
            else if (
GetPlayerState(i) == && IsPlayerInRangeOfPoint(2.0i,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"50003);
            }
            else if (
GetPlayerState(i) == && IsPlayerInRangeOfPoint(2.0i,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"50003);
            }
             else if (
GetPlayerState(i) == && IsPlayerInRangeOfPoint(3.0i2088.8499,-1187.2502,26.0547))
            {
                
GameTextForPlayer(i"~w~Welcome to The ~p~Ballas Head Quarters ~w~ Type /joinballas to Join ~p~ Ballas"50005);
            }
             else if (
GetPlayerState(i) == && IsPlayerInRangeOfPoint(3.0i2468.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"50005);
            }
            
    }
    return 
1;

any solution?
Reply
#2

Does it go if you delete [newstate] from [CustomPickups (playerid, newstate)]?
Reply
#3

no, it gives the same 10 warnings, any other help?
Reply
#4

the function was declared above with [ forward CustomPickups(playerid, newstate); ] ?
Reply
#5

no, what i have to do?
Reply
#6

Above to [ public CustomPickups(playerid, newstate) ... ]
you will put [ forward CustomPickups(playerid, newstate); ]

try this
Reply
#7

NOW I GOT 9 WARNINGS

PHP код:
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(179) : warning 213tag mismatch
C
:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(183) : warning 213tag mismatch
C
:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(187) : warning 213tag mismatch
C
:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(191) : warning 213tag mismatch
C
:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(195) : warning 213tag mismatch
C
:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(199) : warning 213tag mismatch
C
:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(203) : warning 213tag mismatch
C
:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(207) : warning 213tag mismatch
C
:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(211) : warning 213tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
9 Warnings

Reply
#8

try now

PHP код:
public CustomPickups(playeridnewstate

    for(new 
0MAX_PLAYERSi++) 
    { 
            if(
IsPlayerInRangeOfPoint(i3.01173.2563,-1323.3102,15.3943)) 
            {
// Hospital near Ammu 
                
GameTextForPlayer(i"~w~Type /healme to cure yourself"50005); 
            } 
            else if(
IsPlayerInRangeOfPoint(i3.02029.5945,-1404.6426,17.2512)) 
            {
// Hospital near speedway 
                
GameTextForPlayer(i"~w~Type /healme to cure yourself"50005); 
            } 
            else if(
GetPlayerState(i) == && IsPlayerInRangeOfPoint(i,3.02226.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"50003); 
            } 
            else if(
GetPlayerState(i) == && IsPlayerInRangeOfPoint(i,3.01493.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"50003); 
            } 
            else if(
GetPlayerState(i) == && IsPlayerInRangeOfPoint(i,3.0166.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"50003); 
            } 
            else if(
GetPlayerState(i) == && IsPlayerInRangeOfPoint(i,3.02537.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"50003); 
            } 
            else if(
GetPlayerState(i) == && IsPlayerInRangeOfPoint(i,3.01366.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"50003); 
            } 
            else if(
GetPlayerState(i) == && IsPlayerInRangeOfPoint(i3.02088.8499,-1187.2502,26.0547)) 
            { 
                
GameTextForPlayer(i"~w~Welcome to The ~p~Ballas Head Quarters ~w~ Type /joinballas to Join ~p~ Ballas"50005); 
            } 
            else if(
GetPlayerState(i) == && IsPlayerInRangeOfPoint(i3.02468.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"50005); 
            }
    } 
    return 
1

Reply
#9

Good i have no errors but dont show to me or players the text i put, what can i do pal?
Reply
#10

you have a timer by 1 sec in your gamemode?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)