warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch
if(strcmp(cmdtext,"/kill",true) == 0){
GetPlayerPos(playerid,spawnX[playerid],spawnY[playerid],spawnZ[playerid]);
for(new i=0; i<sizeof(spawnInfo); i++){
if(spawnInfo[i][0] == spawnX[playerid] && spawnInfo[i][1] == spawnY[playerid] && spawnInfo[i][2] == spawnZ[playerid])return SendClientMessage(playerid,COLOR_WARNING, "Warning: you are not allowed to use this command to spawn positions!");
}
return SetPlayerHealth(playerid,0.0);
}
new
spawnInfo[][spawnEnum] =
{
{ X, Y, Z, A, "N" },
{ X, Y, Z, A, "N" },
{ X, Y, Z, A, "N" },
{ X, Y, Z, A, "N" },
{ X, Y, Z, A, "N" },
{ X, Y, Z, A, "N" },
{ X, Y, Z, A, "N" },
{ X, Y, Z, A, "N" },
{ X, Y, Z, A, "N" }
}
;
|
Show 'spawnEnum'. We need to see the tags of the variables. Likely you forgot to add the Float: tag to your variables.
|
enum spawnEnum
{
Float: x,
Float: y,
Float: z,
Float: a,
location[24]
};
|
you did...
you need to write: Float: spawnInfo if any of those variables stored in it is a float... |
|
check your "[]" in script Spawninfo and you fix the warnings!!!
|
|
Nope I haven't forgotten:
PHP Code:
|
pawnInfo" and you'll be fine..|
you have:
new spawnInfo[][spawnEnums] if one of the variables that is stored in this spawnInfo variable is a float, the major variable (spawnInfo) must be a variable, too. In your case this is a string or integer, however it should be a float, as the X Y Z and A coords are floats... just change it to "new Float pawnInfo" and you'll be fine..(except that you'll need to get another variable for the "location") |
