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
#2

Prefix the name of your function with the Float: tag. If you subsequently get a warning about 'forcing reparse', then also add a forward declaration.
Reply
#3

omgg, looooooool.. thanks man
This language should have this type of things for all primitive types at least.. int, float, char
Like java and others
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)