tag mismatch
#1

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); 
Reply
#2

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]); 
Reply
#3

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

You have duplicated a ]
Reply
#4

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]) 
Reply
#5

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)