Simple warning
#1

pawn Код:
enum SInfo
{
    Float:SpawnX,
    Float:SpawnY,
    Float:SpawnZ
}  
new SpawnInfo[MAX_DEFAULT_SPAWNS][SInfo];
the function
pawn Код:
new pName[24];
    new Float: parameter;
    GetPlayerName(playerid, pName, sizeof(pName));
    new SpawnID = udb_UserInt(pName, "Spawn");
    if(coord == 'X')
        parameter = SpawnInfo[SpawnID][SpawnX];
    else if(coord == 'Y')
        parameter = SpawnInfo[SpawnID][SpawnY];
    else if(coord == 'Z')
        parameter = SpawnInfo[SpawnID][SpawnZ];
    return parameter;
The warning : (128 ) : warning 213: tag mismatch (line of the return)
Reply


Messages In This Thread
Simple warning - by DR3AD - 15.08.2012, 20:52
Re: Simple warning - by Vince - 15.08.2012, 20:55
Re: Simple warning - by DR3AD - 15.08.2012, 20:57

Forum Jump:


Users browsing this thread: 2 Guest(s)