SA-MP Forums Archive
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=650462)



tag mismatch - PepsiCola23 - 28.02.2018

PHP код:
    if(PGarbageCP[playerid] >= && PGarbageCP[playerid] < 7)
    {
        
PGarbageCP[playerid] += 1;
        new 
Float:km GetPlayerDistanceFromPoint(playeridDestSet[playerid][0], DestSet[playerid][1], DestSet[playerid][2]);
        
PGarbageCurrent[playerid] += km;
        new 
Float:coord[3];
        
GetPlayerPos(playeridcoord[0], coord[1], coord[2]);
        
SetDestination(playeridcoord[0], coord[1], coord[2]);
        new 
randn random(sizeof(GarbageCP));
        
SetPlayerCheckpoint(playeridGarbageCP[randn][0], GarbageCP[randn][1], GarbageCP[randn]][2], 4.0);
        return 
1;
    } 
i get tag mismatch at this line
PHP код:
 SetPlayerCheckpoint(playeridGarbageCP[randn][0], GarbageCP[randn][1], GarbageCP[randn]][2], 4.0); 



Re: tag mismatch - DeMoo - 28.02.2018

try this
PHP код:
new Float:GarbageCP[][4] =  

    {
Float:xFloat:yFloat:zFloat:size}, 
    {
Float:xFloat:yFloat:zFloat:size}
};
SetPlayerCheckpoint(playeridGarbageCP[randn][0], GarbageCP[randn][1], GarbageCP[randn][2], GarbageCP[randn][3]); 



Re: tag mismatch - jasperschellekens - 28.02.2018

Look at this:
GarbageCP[randn]][2]

You have duplicated a ]


Re: tag mismatch - Sew_Sumi - 28.02.2018

Quote:
Originally Posted by jasperschellekens
Посмотреть сообщение
Look at this:
GarbageCP[randn]][2]

You have duplicated a ]
Good spotting, but there's also 2 places that it's happened, and the 'solution' above even copied it lol.

PHP код:
GarbageCP[randn]][2], GarbageCP[randn]][3]) 



Re: tag mismatch - PepsiCola23 - 28.02.2018

Quote:
Originally Posted by jasperschellekens
Посмотреть сообщение
Look at this:
GarbageCP[randn]][2]

You have duplicated a ]
how come i didnt see this,my bad.thanks